viceroy.net
Interface InboundRelativeListener

All Superinterfaces:
Listener
All Known Implementing Classes:
LocalViceroyPeer.MyInboundRelativeListener

public interface InboundRelativeListener
extends Listener

Describes a listener for the message InboundRelativeMessage. A listener is set per message and object. The naming convension for it: the listener and the object are bounded.

Author:
Anat Talmy
, Oren Dobzinski
See Also:
InboundRelativeMessage

Method Summary
 void onInboundRelativeMessage(InboundRelativeMessage message)
          The method should be called only when a InboundRelativeMessage arrives for the bounded object.
 

Method Detail

onInboundRelativeMessage

public void onInboundRelativeMessage(InboundRelativeMessage message)
The method should be called only when a InboundRelativeMessage arrives for the bounded object. It activates the right method on the bounded object.

Parameters:
message - The message that arrived
Throws:
java.lang.IllegalStateException - if the state the peer's state is illegal
ResourceNotFoundException - if the resource was not found