@StampyLibrary(libraryName="stampy-examples") public class TestClientMessageListener extends java.lang.Object implements StampyMessageListener
TestServer to load
test.TestClientMessageEvent| Constructor and Description |
|---|
TestClientMessageListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnect, not a method one would normally see in an implementation of.
|
AbstractStampyMessageGateway |
getGateway()
Gets the gateway.
|
StompMessageType[] |
getMessageTypes()
Gets the message types of which the implementation is interested.
|
boolean |
isForMessage(StampyMessage<?> message)
Returns true if the message should be processed by the implementation.
|
void |
messageReceived(StampyMessage<?> message,
HostPort hostPort)
Invoked when the type and the message are to be processed by the
implementation.
|
void |
setGateway(AbstractStampyMessageGateway gateway)
Sets the gateway.
|
void |
stats()
Stats.
|
public void messageReceived(StampyMessage<?> message, HostPort hostPort) throws java.lang.Exception
StampyMessageListenermessageReceived in interface StampyMessageListenermessage - the messagehostPort - the host portjava.lang.Exception - the exceptionpublic boolean isForMessage(StampyMessage<?> message)
StampyMessageListenerisForMessage in interface StampyMessageListenermessage - the messagepublic StompMessageType[] getMessageTypes()
StampyMessageListenergetMessageTypes in interface StampyMessageListenerpublic void disconnect()
throws java.lang.Exception
java.lang.Exception - the exception StampyMessageListenerpublic void stats()
public AbstractStampyMessageGateway getGateway()
public void setGateway(AbstractStampyMessageGateway gateway)
gateway - the new gateway