Package org.klomp.snark
Class PeerCoordinatorSet
java.lang.Object
org.klomp.snark.PeerCoordinatorSet
- All Implemented Interfaces:
Iterable<PeerCoordinator>
Hmm, any guesses as to what this is? Used by the multitorrent functionality
in the PeerAcceptor to pick the right PeerCoordinator to accept the con for.
Each PeerCoordinator is added to the set from within the Snark (and removed
from it there too)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(PeerCoordinator coordinator) get(byte[] infoHash) iterator()voidremove(PeerCoordinator coordinator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PeerCoordinatorSet
public PeerCoordinatorSet()
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<PeerCoordinator>
-
add
-
remove
-
get
- Since:
- 0.9.2
-