public final class StompConnection extends Object implements RemotingConnection
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONNECTION_ID_PROP |
| Modifier and Type | Method and Description |
|---|---|
void |
abortTransaction(String txID) |
void |
acknowledge(String messageID,
String subscriptionID) |
void |
addCloseListener(org.apache.activemq.artemis.core.remoting.CloseListener listener) |
void |
addFailureListener(org.apache.activemq.artemis.core.remoting.FailureListener listener) |
void |
addStompEventListener(FrameEventListener listener) |
void |
autoCreateDestinationIfPossible(String queue) |
protected void |
beginTransaction(String txID) |
void |
bufferReceived(Object connectionID,
org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) |
boolean |
checkDataReceived() |
void |
checkDestination(String destination) |
void |
commitTransaction(String txID) |
ServerMessageImpl |
createServerMessage() |
StompFrame |
createStompMessage(ServerMessage serverMessage,
StompSubscription subscription,
int deliveryCount) |
org.apache.activemq.artemis.api.core.ActiveMQBuffer |
createTransportBuffer(int size) |
StompFrame |
decode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) |
void |
destroy() |
void |
disconnect(boolean criticalError) |
void |
disconnect(String scaleDownNodeID,
boolean criticalError) |
boolean |
enableMessageID() |
void |
fail(org.apache.activemq.artemis.api.core.ActiveMQException me) |
void |
fail(org.apache.activemq.artemis.api.core.ActiveMQException me,
String scaleDownTargetNodeID) |
void |
flush() |
Acceptor |
getAcceptorUsed() |
String |
getActiveMQServerName() |
String |
getClientID() |
long |
getCreationTime() |
List<org.apache.activemq.artemis.core.remoting.FailureListener> |
getFailureListeners() |
VersionedStompFrameHandler |
getFrameHandler() |
Object |
getID() |
String |
getLogin() |
StompProtocolManager |
getManager() |
int |
getMinLargeMessageSize() |
String |
getPasscode() |
String |
getRemoteAddress() |
StompSession |
getSession(String txID) |
Connection |
getTransportConnection() |
String |
getVersion() |
void |
handleFrame(StompFrame request) |
boolean |
hasBytes() |
boolean |
isClient() |
boolean |
isDestroyed() |
boolean |
isSupportReconnect() |
boolean |
isSupportsFlowControl() |
boolean |
isValid() |
boolean |
isWritable(ReadyListener callback) |
void |
killMessage(org.apache.activemq.artemis.api.core.SimpleString nodeID) |
void |
negotiateVersion(StompFrame frame) |
void |
physicalSend(StompFrame frame) |
void |
ping(StompFrame pingFrame) |
boolean |
removeCloseListener(org.apache.activemq.artemis.core.remoting.CloseListener listener) |
List<org.apache.activemq.artemis.core.remoting.CloseListener> |
removeCloseListeners() |
boolean |
removeFailureListener(org.apache.activemq.artemis.core.remoting.FailureListener listener) |
List<org.apache.activemq.artemis.core.remoting.FailureListener> |
removeFailureListeners() |
void |
sendFrame(StompFrame frame) |
protected void |
sendServerMessage(ServerMessageImpl message,
String txID) |
void |
setClientID(String clientID) |
void |
setCloseListeners(List<org.apache.activemq.artemis.core.remoting.CloseListener> listeners) |
protected void |
setDataReceived() |
void |
setFailureListeners(List<org.apache.activemq.artemis.core.remoting.FailureListener> listeners) |
void |
setHost(String host) |
void |
setValid(boolean valid) |
void |
unsubscribe(String subscriptionID,
String durableSubscriptionName) |
protected void |
validate() |
boolean |
validateUser(String login,
String pass,
X509Certificate[] certificates) |
protected static final String CONNECTION_ID_PROP
public boolean isSupportReconnect()
isSupportReconnect in interface RemotingConnectionpublic StompFrame decode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) throws ActiveMQStompException
ActiveMQStompExceptionpublic boolean isWritable(ReadyListener callback)
isWritable in interface RemotingConnectionpublic boolean hasBytes()
public void addFailureListener(org.apache.activemq.artemis.core.remoting.FailureListener listener)
addFailureListener in interface RemotingConnectionpublic boolean removeFailureListener(org.apache.activemq.artemis.core.remoting.FailureListener listener)
removeFailureListener in interface RemotingConnectionpublic void addCloseListener(org.apache.activemq.artemis.core.remoting.CloseListener listener)
addCloseListener in interface RemotingConnectionpublic boolean removeCloseListener(org.apache.activemq.artemis.core.remoting.CloseListener listener)
removeCloseListener in interface RemotingConnectionpublic List<org.apache.activemq.artemis.core.remoting.CloseListener> removeCloseListeners()
removeCloseListeners in interface RemotingConnectionpublic List<org.apache.activemq.artemis.core.remoting.FailureListener> removeFailureListeners()
removeFailureListeners in interface RemotingConnectionpublic void setCloseListeners(List<org.apache.activemq.artemis.core.remoting.CloseListener> listeners)
setCloseListeners in interface RemotingConnectionpublic void setFailureListeners(List<org.apache.activemq.artemis.core.remoting.FailureListener> listeners)
setFailureListeners in interface RemotingConnectionprotected void setDataReceived()
public boolean checkDataReceived()
checkDataReceived in interface RemotingConnectionpublic void checkDestination(String destination) throws ActiveMQStompException
ActiveMQStompExceptionpublic void autoCreateDestinationIfPossible(String queue) throws ActiveMQStompException
ActiveMQStompExceptionpublic org.apache.activemq.artemis.api.core.ActiveMQBuffer createTransportBuffer(int size)
createTransportBuffer in interface RemotingConnectionpublic void destroy()
destroy in interface RemotingConnectionpublic Acceptor getAcceptorUsed()
public void fail(org.apache.activemq.artemis.api.core.ActiveMQException me)
fail in interface RemotingConnectionpublic void fail(org.apache.activemq.artemis.api.core.ActiveMQException me,
String scaleDownTargetNodeID)
fail in interface RemotingConnectionpublic void flush()
flush in interface RemotingConnectionpublic List<org.apache.activemq.artemis.core.remoting.FailureListener> getFailureListeners()
getFailureListeners in interface RemotingConnectionpublic Object getID()
getID in interface RemotingConnectionpublic String getRemoteAddress()
getRemoteAddress in interface RemotingConnectionpublic long getCreationTime()
getCreationTime in interface RemotingConnectionpublic Connection getTransportConnection()
getTransportConnection in interface RemotingConnectionpublic boolean isClient()
isClient in interface RemotingConnectionpublic boolean isDestroyed()
isDestroyed in interface RemotingConnectionpublic void bufferReceived(Object connectionID, org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
bufferReceived in interface BufferHandlerpublic String getLogin()
public String getPasscode()
public void setClientID(String clientID)
public String getClientID()
public boolean isValid()
public void setValid(boolean valid)
public void negotiateVersion(StompFrame frame) throws ActiveMQStompException
ActiveMQStompExceptionpublic void setHost(String host) throws ActiveMQStompException
ActiveMQStompExceptionpublic void handleFrame(StompFrame request)
public void sendFrame(StompFrame frame)
public boolean validateUser(String login, String pass, X509Certificate[] certificates)
public ServerMessageImpl createServerMessage()
public StompSession getSession(String txID) throws ActiveMQStompException
ActiveMQStompExceptionprotected void validate()
throws ActiveMQStompException
ActiveMQStompExceptionprotected void sendServerMessage(ServerMessageImpl message, String txID) throws ActiveMQStompException
ActiveMQStompExceptionpublic void disconnect(boolean criticalError)
disconnect in interface RemotingConnectionpublic void disconnect(String scaleDownNodeID, boolean criticalError)
disconnect in interface RemotingConnectionprotected void beginTransaction(String txID) throws ActiveMQStompException
ActiveMQStompExceptionpublic void commitTransaction(String txID) throws ActiveMQStompException
ActiveMQStompExceptionpublic void abortTransaction(String txID) throws ActiveMQStompException
ActiveMQStompExceptionpublic void unsubscribe(String subscriptionID, String durableSubscriptionName) throws ActiveMQStompException
ActiveMQStompExceptionpublic void acknowledge(String messageID, String subscriptionID) throws ActiveMQStompException
ActiveMQStompExceptionpublic String getVersion()
public String getActiveMQServerName()
public StompFrame createStompMessage(ServerMessage serverMessage, StompSubscription subscription, int deliveryCount) throws Exception
Exceptionpublic void addStompEventListener(FrameEventListener listener)
public void ping(StompFrame pingFrame)
public void physicalSend(StompFrame frame) throws Exception
Exceptionpublic VersionedStompFrameHandler getFrameHandler()
public boolean enableMessageID()
public int getMinLargeMessageSize()
public StompProtocolManager getManager()
public void killMessage(org.apache.activemq.artemis.api.core.SimpleString nodeID)
killMessage in interface RemotingConnectionpublic boolean isSupportsFlowControl()
isSupportsFlowControl in interface RemotingConnectionCopyright © 2023 The Apache Software Foundation. All Rights Reserved.