public abstract class VersionedStompFrameHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected StompConnection |
connection |
protected StompDecoder |
decoder |
protected ExecutorFactory |
executorFactory |
protected ScheduledExecutorService |
scheduledExecutorService |
| Modifier | Constructor and Description |
|---|---|
protected |
VersionedStompFrameHandler(StompConnection connection,
ScheduledExecutorService scheduledExecutorService,
ExecutorFactory executorFactory) |
protected StompConnection connection
protected StompDecoder decoder
protected final ScheduledExecutorService scheduledExecutorService
protected final ExecutorFactory executorFactory
protected VersionedStompFrameHandler(StompConnection connection, ScheduledExecutorService scheduledExecutorService, ExecutorFactory executorFactory)
public static VersionedStompFrameHandler getHandler(StompConnection connection, StompVersions version, ScheduledExecutorService scheduledExecutorService, ExecutorFactory executorFactory)
public StompFrame decode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) throws ActiveMQStompException
ActiveMQStompExceptionpublic boolean hasBytes()
public StompDecoder getDecoder()
public StompFrame handleFrame(StompFrame request)
public abstract StompFrame onConnect(StompFrame frame)
public abstract StompFrame onDisconnect(StompFrame frame)
public abstract StompFrame onAck(StompFrame request)
public abstract StompFrame onUnsubscribe(StompFrame request)
public abstract StompFrame onStomp(StompFrame request)
public abstract StompFrame onNack(StompFrame request)
public abstract StompFrame createStompFrame(String command)
public StompFrame onUnknown(String command)
public StompFrame handleReceipt(String receiptID)
public StompFrame onCommit(StompFrame request)
public StompFrame onSend(StompFrame frame)
public StompFrame onBegin(StompFrame frame)
public StompFrame onAbort(StompFrame request)
public StompFrame onSubscribe(StompFrame request)
public StompFrame postprocess(StompFrame request)
public StompFrame createMessageFrame(ServerMessage serverMessage, StompSubscription subscription, int deliveryCount) throws Exception
Exceptionpublic void initDecoder(VersionedStompFrameHandler existingHandler)
existingHandler - public void onError(ActiveMQStompException e)
Copyright © 2023 The Apache Software Foundation. All Rights Reserved.