com.crankuptheamps.client
Interface MessageHandler

All Known Implementing Classes:
DefaultMessageHandler, MessageStream

public interface MessageHandler

Interface for classes the handle AMPS messages.


Method Summary
 void invoke(Message message)
          Method for the AMPS client to call when a message is received.
 

Method Detail

invoke

void invoke(Message message)
Method for the AMPS client to call when a message is received.

The AMPS client reuses the same message object in successive calls to the message handler, resetting the contents of the object for each call. Should you need to use the data in the message outside of the call to the message handler, you must copy the message object or copy data out of the message object.