Class StompConnection
java.lang.Object
org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
org.apache.activemq.artemis.core.protocol.stomp.StompConnection
- All Implemented Interfaces:
RemotingConnection,BufferHandler
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
closeListeners, creationTime, dataReceived, executor, failureListeners, transportConnection -
Method Summary
Modifier and TypeMethodDescriptionvoidabortTransaction(String txID) voidacknowledge(String messageID, String subscriptionID) voidaddStompEventListener(FrameEventListener listener) voidautoCreateDestinationIfPossible(String destination, RoutingType routingType) protected voidbeginTransaction(String txID) voidbufferReceived(Object connectionID, ActiveMQBuffer buffer) voidcheckDestination(String destination) voidcheckRoutingSemantics(String destination, RoutingType routingType) voidcommitTransaction(String txID) org.apache.activemq.artemis.core.message.impl.CoreMessagecreateStompMessage(ICoreMessage message, StompSubscription subscription, org.apache.activemq.artemis.core.server.ServerConsumer consumer, int deliveryCount) decode(ActiveMQBuffer buffer) voiddestroy()voiddisconnect(boolean criticalError) voiddisconnect(String scaleDownNodeID, boolean criticalError) voidvoidfail(ActiveMQException me, String scaleDownTargetNodeID) List<org.apache.activemq.artemis.core.remoting.FailureListener>getLogin()intgetSession(String txID) voidhandleFrame(StompFrame request) booleanhasBytes()booleanbooleanisValid()booleanisWritable(ReadyListener callback) voidlogFrame(StompFrame request, boolean in) voidnegotiateVersion(StompFrame frame) voidphysicalSend(StompFrame frame) voidping(StompFrame pingFrame) voidsendFrame(StompFrame frame, StompPostReceiptFunction function) protected voidsendServerMessage(ICoreMessage message, String txID) voidvoidvoidsetPasscode(String passcode) voidsetValid(boolean valid) voidunsubscribe(String subscriptionID, String durableSubscriptionName) protected voidvalidate()Methods inherited from class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
addCloseListener, addFailureListener, callClosingListeners, callFailureListeners, checkDataReceived, close, createTransportBuffer, flush, getClientID, getCreationTime, getID, getLocalAddress, getRemoteAddress, getSubject, getTransportConnection, getTransportLocalAddress, isClient, isDestroyed, isSupportReconnect, isSupportsFlowControl, killMessage, removeCloseListener, removeCloseListeners, removeFailureListener, removeFailureListeners, scheduledFlush, setClientID, setCloseListeners, setFailureListeners, setSubjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.spi.core.remoting.BufferHandler
endOfBatchMethods inherited from interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
disconnect, isSameTarget
-
Method Details
-
getStompVersionHandler
-
decode
- Throws:
ActiveMQStompException
-
isWritable
- Specified by:
isWritablein interfaceRemotingConnection- Overrides:
isWritablein classAbstractRemotingConnection
-
hasBytes
public boolean hasBytes() -
checkDestination
- Throws:
ActiveMQStompException
-
autoCreateDestinationIfPossible
public void autoCreateDestinationIfPossible(String destination, RoutingType routingType) throws ActiveMQStompException - Throws:
ActiveMQStompException
-
checkRoutingSemantics
public void checkRoutingSemantics(String destination, RoutingType routingType) throws ActiveMQStompException - Throws:
ActiveMQStompException
-
destroy
public void destroy() -
getAcceptorUsed
-
fail
- Specified by:
failin interfaceRemotingConnection- Overrides:
failin classAbstractRemotingConnection
-
asyncFail
- Specified by:
asyncFailin interfaceRemotingConnection- Overrides:
asyncFailin classAbstractRemotingConnection
-
fail
-
getFailureListeners
- Specified by:
getFailureListenersin interfaceRemotingConnection- Overrides:
getFailureListenersin classAbstractRemotingConnection
-
bufferReceived
- Specified by:
bufferReceivedin interfaceBufferHandler- Overrides:
bufferReceivedin classAbstractRemotingConnection
-
getLogin
-
setLogin
-
getPasscode
-
setPasscode
-
isValid
public boolean isValid() -
setValid
public void setValid(boolean valid) -
negotiateVersion
- Throws:
ActiveMQStompException
-
setHost
- Throws:
ActiveMQStompException
-
handleFrame
-
logFrame
-
sendFrame
-
createServerMessage
public org.apache.activemq.artemis.core.message.impl.CoreMessage createServerMessage() -
getSession
-
getSession
public StompSession getSession(String txID) throws ActiveMQStompException, ActiveMQSecurityException -
validate
- Throws:
ActiveMQStompException
-
sendServerMessage
- Throws:
ActiveMQStompException
-
disconnect
public void disconnect(boolean criticalError) -
disconnect
-
beginTransaction
- Throws:
ActiveMQStompException
-
commitTransaction
- Throws:
ActiveMQStompException
-
abortTransaction
- Throws:
ActiveMQStompException
-
unsubscribe
public void unsubscribe(String subscriptionID, String durableSubscriptionName) throws ActiveMQStompException - Throws:
ActiveMQStompException
-
acknowledge
- Throws:
ActiveMQStompException
-
getVersion
-
getActiveMQServerName
-
createStompMessage
public StompFrame createStompMessage(ICoreMessage message, StompSubscription subscription, org.apache.activemq.artemis.core.server.ServerConsumer consumer, int deliveryCount) throws ActiveMQException - Throws:
ActiveMQException
-
addStompEventListener
-
ping
-
physicalSend
- Throws:
Exception
-
getFrameHandler
-
isEnableMessageID
public boolean isEnableMessageID() -
getMinLargeMessageSize
public int getMinLargeMessageSize() -
getManager
-
getProtocolName
-