public abstract class AbstractStompSocket extends TransportSupport implements StompTransport
| Modifier and Type | Field and Description |
|---|---|
protected ProtocolConverter |
protocolConverter |
protected int |
receiveCounter |
protected CountDownLatch |
socketTransportStarted |
protected StompInactivityMonitor |
stompInactivityMonitor |
protected StompWireFormat |
wireFormat |
| Constructor and Description |
|---|
AbstractStompSocket() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop(ServiceStopper stopper) |
StompInactivityMonitor |
getInactivityMonitor() |
int |
getReceiveCounter()
Returns a counter which gets incremented as data is read from the transport.
|
String |
getRemoteAddress() |
StompWireFormat |
getWireFormat() |
abstract void |
handleStopped()
Called when the transport is stopping to allow the dervied classes
a chance to close WebSocket resources.
|
void |
oneway(Object command)
A one way asynchronous send
|
protected void |
processStompFrame(String data) |
void |
sendToActiveMQ(Command command) |
abstract void |
sendToStomp(StompFrame command) |
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIsaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonExceptionprotected ProtocolConverter protocolConverter
protected StompWireFormat wireFormat
protected final CountDownLatch socketTransportStarted
protected final StompInactivityMonitor stompInactivityMonitor
protected volatile int receiveCounter
public AbstractStompSocket()
public void oneway(Object command) throws IOException
Transportoneway in interface TransportIOExceptionpublic void sendToActiveMQ(Command command)
sendToActiveMQ in interface StompTransportprotected void doStop(ServiceStopper stopper) throws Exception
doStop in class ServiceSupportExceptionprotected void doStart() throws Exception
doStart in class ServiceSupportExceptionpublic abstract void sendToStomp(StompFrame command) throws IOException
sendToStomp in interface StompTransportIOExceptionpublic abstract void handleStopped() throws IOException
IOException - if an error occurs during the stop.public StompInactivityMonitor getInactivityMonitor()
getInactivityMonitor in interface StompTransportpublic StompWireFormat getWireFormat()
getWireFormat in interface StompTransportpublic String getRemoteAddress()
getRemoteAddress in interface Transportpublic int getReceiveCounter()
TransportgetReceiveCounter in interface Transportprotected void processStompFrame(String data)
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.