@StampyLibrary(libraryName="stampy-MINA-client-server-RI") public class ServerMinaMessageGateway extends AbstractStampyMinaMessageGateway
serviceAdapterinterceptors, textInterceptors| Constructor and Description |
|---|
ServerMinaMessageGateway() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addServiceListenerImpl(org.apache.mina.core.service.IoServiceListener listener) |
void |
broadcastMessage(java.lang.String message)
Broadcasts the specified String to all connections.
|
void |
closeConnection(HostPort hostPort)
Closes the connection to the STOMP server or client.
|
void |
connect()
Connects to a STOMP server or client as specified by configuration.
|
boolean |
isConnected(HostPort hostPort)
Returns true if a connection exists and is active.
|
protected void |
removeServiceListenerImpl(org.apache.mina.core.service.IoServiceListener listener) |
void |
sendMessage(java.lang.String message,
HostPort hostPort)
Sends the specified String to the specified
HostPort. |
void |
shutdown()
Shuts down the underlying connection technology.
|
addServiceListener, getConnectedHostPorts, getHandler, getServiceListeners, removeServiceListener, setHandleraddMessageListener, addMessageListener, addOutgoingMessageInterceptor, addOutgoingTextInterceptor, broadcastMessage, clearMessageListeners, getHeartbeat, getMaxMessageSize, getPort, getUnparseableMessageHandler, interceptOutgoingMessage, interceptOutgoingMessage, interceptOutgoingMessage, isAutoShutdown, isForType, notifyMessageListeners, removeMessageListener, removeOutgoingMessageInterceptor, removeOutgoingTextInterceptor, sendMessage, setAutoShutdown, setHeartbeat, setListeners, setMaxMessageSize, setOutgoingMessageInterceptors, setOutgoingTextInterceptors, setPort, setUnparseableMessageHandlerpublic void connect()
throws java.lang.Exception
AbstractStampyMessageGatewayconnect in class AbstractStampyMessageGatewayjava.lang.Exception - the exceptionpublic boolean isConnected(HostPort hostPort)
AbstractStampyMessageGatewayisConnected in class AbstractStampyMessageGatewayhostPort - the host portpublic void sendMessage(java.lang.String message,
HostPort hostPort)
throws InterceptException
AbstractStampyMessageGatewayHostPort. Included for
STOMP implementations which accept custom message types. Use for all
non-STOMP messages.sendMessage in class AbstractStampyMessageGatewaymessage - the stomp messagehostPort - the host portInterceptException - the intercept exceptionpublic void broadcastMessage(java.lang.String message)
throws InterceptException
AbstractStampyMessageGatewaybroadcastMessage in class AbstractStampyMessageGatewaymessage - the stomp messageInterceptException - the intercept exceptionpublic void closeConnection(HostPort hostPort)
AbstractStampyMessageGatewaycloseConnection in class AbstractStampyMessageGatewayhostPort - the host portpublic void shutdown()
throws java.lang.Exception
AbstractStampyMessageGatewayshutdown in class AbstractStampyMessageGatewayjava.lang.Exception - the exceptionprotected void addServiceListenerImpl(org.apache.mina.core.service.IoServiceListener listener)
addServiceListenerImpl in class AbstractStampyMinaMessageGatewayprotected void removeServiceListenerImpl(org.apache.mina.core.service.IoServiceListener listener)
removeServiceListenerImpl in class AbstractStampyMinaMessageGateway