JXTA

net.jxta.impl.rendezvous.rpv
Class PeerViewSequentialStrategy

java.lang.Object
  extended by net.jxta.impl.rendezvous.rpv.PeerViewSequentialStrategy
All Implemented Interfaces:
PeerViewStrategy

 class PeerViewSequentialStrategy
extends Object
implements PeerViewStrategy

Sequential


Constructor Summary
PeerViewSequentialStrategy(SortedSet<PeerViewDestination> aset)
           
 
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
 

Constructor Detail

PeerViewSequentialStrategy

PeerViewSequentialStrategy(SortedSet<PeerViewDestination> aset)
Method Detail

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.

JXSE