com.crankuptheamps.client
Class DefaultMessageHandler
java.lang.Object
com.crankuptheamps.client.DefaultMessageHandler
- All Implemented Interfaces:
- MessageHandler
public class DefaultMessageHandler
- extends Object
- implements MessageHandler
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 |
instance
public static final DefaultMessageHandler instance
DefaultMessageHandler
public DefaultMessageHandler()
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