planet.commonapi.behaviours
Interface BehavioursInvoker

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BehavioursInvokerImpl

public interface BehavioursInvoker
extends java.io.Serializable

This interface permits to invoke the required behaviour when a new RouteMessage is arrived to any node. Only one Behaviour can be associated to one BehaviourInvoker.

Author:
Jordi Pujol 01-jul-2005

Method Summary
 boolean invoke(RouteMessage msg, Node node)
          This method invokes the related behaviour.
 

Method Detail

invoke

public boolean invoke(RouteMessage msg,
                      Node node)
This method invokes the related behaviour.

Parameters:
msg - The RouteMessage recently arrived to the node.
node - The Node which holds the behaviour.
Returns:
true when the related behaviour has been invoked. false in other case.