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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(PeerCoordinator coordinator) get
(byte[] infoHash) iterator()
void
remove
(PeerCoordinator coordinator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PeerCoordinatorSet
public PeerCoordinatorSet()
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceIterable<PeerCoordinator>
-
add
-
remove
-
get
- Since:
- 0.9.2
-