com.inspirel.yami
Interface IncomingMessageCallback


public interface IncomingMessageCallback

The callback interface that is used to notify the user code that the new incoming message has been received.


Method Summary
 void call(IncomingMessage message)
          Callback function that is automatically called by the agent whenever a new message arrives.
 

Method Detail

call

void call(IncomingMessage message)
          throws java.lang.Exception
Callback function that is automatically called by the agent whenever a new message arrives.

Note: Implementations of this interface should be thread-safe if they are used with the agent that has more than one dispatcher thread.

Note: All exceptions thrown from the user code that overrides this function are translated into rejection notifications and sent back to the source site.

Parameters:
message - the message descriptor
Throws:
java.lang.Exception - any exception, which will be interpreted as failure to process the message