Class StompFrameHandlerV11
java.lang.Object
org.apache.activemq.artemis.core.protocol.stomp.VersionedStompFrameHandler
org.apache.activemq.artemis.core.protocol.stomp.v11.StompFrameHandlerV11
- All Implemented Interfaces:
FrameEventListener
- Direct Known Subclasses:
StompFrameHandlerV12
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.activemq.artemis.core.protocol.stomp.VersionedStompFrameHandler
connection, decoder, EMPTY_BODY, executorFactory, scheduledExecutorService -
Constructor Summary
ConstructorsConstructorDescriptionStompFrameHandlerV11(StompConnection connection, ScheduledExecutorService scheduledExecutorService, ExecutorFactory executorFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateStompFrame(String command) protected voidprotected StompFrameorg.apache.activemq.artemis.core.server.ActiveMQScheduledComponentvoidinitDecoder(VersionedStompFrameHandler existingHandler) this method is called when a newer version of handler is created.onAck(StompFrame request) onConnect(StompFrame frame) onDisconnect(StompFrame frame) onNack(StompFrame request) onStomp(StompFrame request) onUnsubscribe(StompFrame request) voidreplySent(StompFrame reply) voidrequestAccepted(StompFrame request) Methods inherited from class org.apache.activemq.artemis.core.protocol.stomp.VersionedStompFrameHandler
createMessageFrame, decode, getDecoder, getDestination, getDestination, getHandler, getPrefix, handleFrame, handleReceipt, hasBytes, onAbort, onBegin, onCommit, onError, onSend, onSubscribe, onUnknown, postprocess
-
Field Details
-
ESC_CHAR
protected static final char ESC_CHAR- See Also:
-
-
Constructor Details
-
StompFrameHandlerV11
public StompFrameHandlerV11(StompConnection connection, ScheduledExecutorService scheduledExecutorService, ExecutorFactory executorFactory)
-
-
Method Details
-
getHeartBeater
public org.apache.activemq.artemis.core.server.ActiveMQScheduledComponent getHeartBeater() -
onConnect
- Specified by:
onConnectin classVersionedStompFrameHandler
-
getFailedAuthenticationResponse
- Overrides:
getFailedAuthenticationResponsein classVersionedStompFrameHandler
-
onDisconnect
- Specified by:
onDisconnectin classVersionedStompFrameHandler
-
disconnect
protected void disconnect()- Overrides:
disconnectin classVersionedStompFrameHandler
-
onUnsubscribe
- Specified by:
onUnsubscribein classVersionedStompFrameHandler
-
onAck
- Specified by:
onAckin classVersionedStompFrameHandler
-
onStomp
- Specified by:
onStompin classVersionedStompFrameHandler
-
onNack
- Specified by:
onNackin classVersionedStompFrameHandler
-
replySent
- Specified by:
replySentin interfaceFrameEventListener
-
createPingFrame
-
requestAccepted
- Specified by:
requestAcceptedin interfaceFrameEventListener
-
createStompFrame
- Specified by:
createStompFramein classVersionedStompFrameHandler
-
initDecoder
Description copied from class:VersionedStompFrameHandlerthis method is called when a newer version of handler is created. It should take over the state of the decoder of the existingHandler so that the decoding can be continued. For V10 handler it's never called.- Overrides:
initDecoderin classVersionedStompFrameHandler
-