public class DefaultMessageHandler extends java.lang.Object implements MessageHandler
MessageHandler
interface that
does nothing.Modifier and Type | Field and Description |
---|---|
static DefaultMessageHandler |
instance |
Constructor and Description |
---|
DefaultMessageHandler() |
public static final DefaultMessageHandler instance
public void invoke(Message message)
MessageHandler
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.
invoke
in interface MessageHandler
message
- the message received from AMPS. As mentioned above, this message object is reused by successive calls to the handler.