java.lang.Object
net.i2p.router.transport.TransportManager.EstablishedSnapshot
Enclosing class:
TransportManager

private static final class TransportManager.EstablishedSnapshotextends Object
Immutable getEstablished() snapshot plus its expiry, holding an unmodifiable peer hash list and the wall-clock ms after which the snapshot is stale.
  • Field Details

    • peers

      private final List<Hash> peers
      Peers in the summary.
    • expiresAt

      private final long expiresAt
      When the summary expires.
  • Constructor Details

    • EstablishedSnapshot

      EstablishedSnapshot(List<Hash> peers, long expiresAt)
      Creates a snapshot of established peers valid until the given time.
      Parameters:
      peers - the unmodifiable peer hash list
      expiresAt - wall-clock ms after which this snapshot is stale