JXTA

net.jxta.impl.rendezvous
Interface RdvWalker

All Known Implementing Classes:
LimitedRangeWalker

public interface RdvWalker

A walker is responsible for implementing the strategy of sending messages for a walk.

See Also:
RdvWalk, RdvGreeter

Method Summary
 void stop()
          Stop the walker.
 void walkMessage(PeerID destPeer, Message msg, String serviceName, String serviceParam, int ttl)
          Walk a message to other Rendezvous peers participating into the walk.
 

Method Detail

walkMessage

void walkMessage(PeerID destPeer,
                 Message msg,
                 String serviceName,
                 String serviceParam,
                 int ttl)
                 throws IOException
Walk a message to other Rendezvous peers participating into the walk. An initial rendezvous peer can be optionally provided as a hint.

Parameters:
destPeer - 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.
serviceName - The name of the service.
serviceParam - 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.
Throws:
IOException - If the message was not sent to any other rendezvous peers.

stop

void stop()
Stop the walker. Some walkers may implement a strategy that has state and this method will stop any internal processing.


JXSE