com.crankuptheamps.client
Class DefaultMessageHandler

java.lang.Object
  extended by com.crankuptheamps.client.DefaultMessageHandler
All Implemented Interfaces:
MessageHandler

public class DefaultMessageHandler
extends Object
implements MessageHandler


Field Summary
static DefaultMessageHandler instance
           
 
Constructor Summary
DefaultMessageHandler()
           
 
Method Summary
 void invoke(Message message)
          Method for the AMPS client to call when a message is received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final DefaultMessageHandler instance
Constructor Detail

DefaultMessageHandler

public DefaultMessageHandler()
Method Detail

invoke

public void invoke(Message message)
Description copied from interface: MessageHandler
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.

Specified by:
invoke in interface MessageHandler