java.lang.Object
net.i2p.router.transport.udp.IntroductionManager.PeerStateComparator
All Implemented Interfaces:
Serializable, Comparator<PeerState>
Enclosing class:
IntroductionManager

private static class IntroductionManager.PeerStateComparatorextends Object implements Comparator<PeerState>, Serializable
For picking introducers. Lowest uptime first, to reduce idle timeout and disconnect, and ensure variety.
  • Constructor Details

    • PeerStateComparator

      private PeerStateComparator()
      Orders peers by how recently they were introduced.
  • Method Details