@StampyLibrary(libraryName="stampy-MINA-client-server-RI") public class StampyServiceAdapter extends MinaServiceAdapter
| Constructor and Description |
|---|
StampyServiceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeAllSessions() |
void |
closeSession(HostPort hostPort) |
AbstractStampyMinaMessageGateway |
getGateway()
Gets the gateway.
|
java.util.Set<HostPort> |
getHostPorts()
Gets the host ports.
|
org.apache.mina.core.session.IoSession |
getSession(HostPort hostPort)
Gets the session.
|
boolean |
hasSession(HostPort hostPort)
Returns true if the specified
HostPort has an active session. |
boolean |
isAutoShutdown()
Checks if is auto shutdown.
|
void |
sendMessage(java.lang.String stompMessage,
HostPort hostPort)
Send message.
|
void |
sessionCreated(org.apache.mina.core.session.IoSession session) |
void |
sessionDestroyed(org.apache.mina.core.session.IoSession session) |
void |
setAutoShutdown(boolean autoClose)
Sets the auto shutdown.
|
void |
setGateway(AbstractStampyMinaMessageGateway gateway)
Sets the gateway.
|
serviceActivated, serviceDeactivated, serviceIdlepublic void sessionCreated(org.apache.mina.core.session.IoSession session)
throws java.lang.Exception
sessionCreated in interface org.apache.mina.core.service.IoServiceListenersessionCreated in class MinaServiceAdapterjava.lang.Exceptionpublic void sessionDestroyed(org.apache.mina.core.session.IoSession session)
throws java.lang.Exception
sessionDestroyed in interface org.apache.mina.core.service.IoServiceListenersessionDestroyed in class MinaServiceAdapterjava.lang.Exceptionpublic void closeAllSessions()
public void closeSession(HostPort hostPort)
public boolean hasSession(HostPort hostPort)
HostPort has an active session.hostPort - the host portpublic org.apache.mina.core.session.IoSession getSession(HostPort hostPort)
hostPort - the host portpublic java.util.Set<HostPort> getHostPorts()
public void sendMessage(java.lang.String stompMessage,
HostPort hostPort)
stompMessage - the stomp messagehostPort - the host portpublic boolean isAutoShutdown()
public void setAutoShutdown(boolean autoClose)
autoClose - the new auto shutdownpublic AbstractStampyMinaMessageGateway getGateway()
public void setGateway(AbstractStampyMinaMessageGateway gateway)
gateway - the new gateway