Package org.klomp.snark
Class PeerCoordinatorSet
- java.lang.Object
-
- org.klomp.snark.PeerCoordinatorSet
-
- All Implemented Interfaces:
Iterable<PeerCoordinator>
class PeerCoordinatorSet extends Object implements 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 Constructor Description PeerCoordinatorSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(PeerCoordinator coordinator)
PeerCoordinator
get(byte[] infoHash)
Iterator<PeerCoordinator>
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
-
-
-
-
Method Detail
-
iterator
public Iterator<PeerCoordinator> iterator()
- Specified by:
iterator
in interfaceIterable<PeerCoordinator>
-
add
public void add(PeerCoordinator coordinator)
-
remove
public void remove(PeerCoordinator coordinator)
-
get
public PeerCoordinator get(byte[] infoHash)
- Since:
- 0.9.2
-
-