net.jxta.impl.rendezvous.rpv
Class PeerViewSequentialStrategy
java.lang.Object
net.jxta.impl.rendezvous.rpv.PeerViewSequentialStrategy
- All Implemented Interfaces:
- PeerViewStrategy
class PeerViewSequentialStrategy
- extends Object
- implements PeerViewStrategy
Sequential
Method Summary |
PeerViewElement |
next()
Return the next PeerView Element using the strategy applied by this
instance. |
void |
reset()
Reset the strategy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PeerViewSequentialStrategy
PeerViewSequentialStrategy(SortedSet<PeerViewDestination> aset)
reset
public void reset()
- Reset the strategy. The meaning of reset depends entirely on the strategy
which is used to return peer view elements.
- Specified by:
reset
in interface PeerViewStrategy
next
public PeerViewElement next()
- Return the next PeerView Element using the strategy applied by this
instance.
- Specified by:
next
in interface PeerViewStrategy
- Returns:
- the next peer view element in sequence or null if the peerview
is empty.