net.metanotion.util
Interface Message<O>

All Superinterfaces:
java.io.Serializable

public interface Message<O>
extends java.io.Serializable

Interface defining a reified message to send to an object.


Method Summary
 java.lang.Object call(O o)
          Call a method on o, returning the return values.
 void send(O o)
          Send a message to o, ignore any return values.
 

Method Detail

send

void send(O o)
Send a message to o, ignore any return values. (Asynchronous)

Parameters:
o - Object to receive the message.

call

java.lang.Object call(O o)
Call a method on o, returning the return values. (Synchronous)

Parameters:
o - Object to receive the message.
Returns:
Result of the message.