|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.rendezvous.limited.LimitedRangeWalker
public class LimitedRangeWalker
The Limited Range Walker is designed to be used by Rendezvous Peer in order to propagate a message amongst them. A target destination peer is used in order to send the message to a primary peer. Then, depending on the TTL, the message is duplicated into two messages, each of them being sent in opposite "directions" of the RPV.
Constructor Summary | |
---|---|
LimitedRangeWalker(LimitedRangeWalk walk)
Constructor |
Method Summary | |
---|---|
void |
stop()
Stop the walker. |
void |
walkMessage(PeerID destination,
Message msg,
String srcSvcName,
String srcSvcParam,
int ttl)
Walk a message to other Rendezvous peers participating into the walk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LimitedRangeWalker(LimitedRangeWalk walk)
walk
- The walk we will be associated with.Method Detail |
---|
public void stop()
stop
in interface RdvWalker
public void walkMessage(PeerID destination, Message msg, String srcSvcName, String srcSvcParam, int ttl) throws IOException
walkMessage
in interface RdvWalker
destination
- An optional PeerID of the peer which will be the initial
recipient of the walked message.msg
- The message to walk. The message will be modified.srcSvcName
- The name of the service.srcSvcParam
- The parameter of the service.ttl
- The maximum TTL of the message. This value may be decreased by
the Walker implementation, but will never be increased.
IOException
- If the message was not sent to any other rendezvous
peers.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |