public abstract class AbstractStompSocket extends org.apache.activemq.transport.TransportSupport implements StompTransport
| Modifier and Type | Field and Description |
|---|---|
protected X509Certificate[] |
certificates |
protected ProtocolConverter |
protocolConverter |
protected ReentrantLock |
protocolLock |
protected int |
receiveCounter |
protected String |
remoteAddress |
protected CountDownLatch |
socketTransportStarted |
protected StompInactivityMonitor |
stompInactivityMonitor |
protected StompWireFormat |
wireFormat |
| Constructor and Description |
|---|
AbstractStompSocket(String remoteAddress) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop(org.apache.activemq.util.ServiceStopper stopper) |
StompInactivityMonitor |
getInactivityMonitor() |
X509Certificate[] |
getPeerCertificates() |
int |
getReceiveCounter() |
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) |
protected void |
processStompFrame(String data) |
void |
sendToActiveMQ(org.apache.activemq.command.Command command) |
abstract void |
sendToStomp(StompFrame command) |
void |
setPeerCertificates(X509Certificate[] certificates) |
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 ReentrantLock protocolLock
protected ProtocolConverter protocolConverter
protected StompWireFormat wireFormat
protected final CountDownLatch socketTransportStarted
protected final StompInactivityMonitor stompInactivityMonitor
protected volatile int receiveCounter
protected final String remoteAddress
protected X509Certificate[] certificates
public AbstractStompSocket(String remoteAddress)
public void oneway(Object command) throws IOException
oneway in interface org.apache.activemq.transport.TransportIOExceptionpublic void sendToActiveMQ(org.apache.activemq.command.Command command)
sendToActiveMQ in interface StompTransportprotected void doStop(org.apache.activemq.util.ServiceStopper stopper) throws Exception
doStop in class org.apache.activemq.util.ServiceSupportExceptionprotected void doStart() throws Exception
doStart in class org.apache.activemq.util.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 StompTransportgetWireFormat in interface org.apache.activemq.transport.Transportpublic String getRemoteAddress()
getRemoteAddress in interface org.apache.activemq.transport.Transportpublic int getReceiveCounter()
getReceiveCounter in interface org.apache.activemq.transport.Transportprotected void processStompFrame(String data)
public X509Certificate[] getPeerCertificates()
getPeerCertificates in interface org.apache.activemq.transport.Transportpublic void setPeerCertificates(X509Certificate[] certificates)
setPeerCertificates in interface org.apache.activemq.transport.TransportCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.