Project JXTA

net.jxta.impl.rendezvous
Interface RdvWalker

All Known Implementing Classes:
LimitedRangeWalker

public interface RdvWalker

A walker is responsible for carrying a message to other rendezvous peers as defined by its walk style.


Method Summary
 void resendMessage(Message msg)
          resend a message to other Rendezvous peers participating into the walk.
 void sendMessage(PeerID destPeer, Message msg, String srcSvcName, String srcSvcParam, int ttl, RouteAdvertisement srcRouteAdv)
          Send a message to other Rendezvous peers participating into the walk.
 void stop()
          Stop the walker
 

Method Detail

sendMessage

public void sendMessage(PeerID destPeer,
                        Message msg,
                        String srcSvcName,
                        String srcSvcParam,
                        int ttl,
                        RouteAdvertisement srcRouteAdv)
                 throws IOException
Send a message to other Rendezvous peers participating into the walk. An initial rendezvous peer is provided, as an hint.

Parameters:
msg - the message to be sent.
Throws:
IOException - when the message was not sent to any other rendezvous peers.

resendMessage

public void resendMessage(Message msg)
                   throws IOException
resend a message to other Rendezvous peers participating into the walk. The provided message is a message that has been received by the Greeter.

Parameters:
msg - the message to be resent.
Throws:
IOException - when the message was not sent to any other rendezvous peers.

stop

public void stop()
Stop the walker


JXTA J2SE