juglr
Interface MulticastActor.Strategy

Enclosing class:
MulticastActor

public static interface MulticastActor.Strategy

Used by MulticastActor to determine which addresses to relay a given message to


Method Summary
 java.util.Iterator<Address> recipients(Message msg)
          Get an iterator over the recipients of msg
 void start()
          Make sure that all actors related to this strategy have their Actor.start() method invoked.
 

Method Detail

recipients

java.util.Iterator<Address> recipients(Message msg)
Get an iterator over the recipients of msg

Parameters:
msg - the message to find the recipeints for
Returns:
and iterator over the addresses to send msg to

start

void start()
Make sure that all actors related to this strategy have their Actor.start() method invoked. Note that it is the responsibility of the strategy to also start any actors that may be created after this method call