Project JXTA

net.jxta.impl.rendezvous.rpv
Interface PeerViewStrategy

All Known Implementing Classes:
PeerViewRandomStrategy, PeerViewRandomWithReplaceStrategy, PeerViewSequentialStrategy

interface PeerViewStrategy

Describes a strategy for iterating over the values in a peerview.


Method Summary
 PeerViewElement next()
          Return the next PeerView Element using the strategy applied by this instance.
 void reset()
          Reset the strategy.
 

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.


next

public PeerViewElement next()
Return the next PeerView Element using the strategy applied by this instance.

Returns:
the next peer view element in sequence or null if the peerview is empty.

JXTA J2SE