public class ActiveMQProtonRemotingConnection extends AbstractRemotingConnection
closeListeners, creationTime, dataReceived, executor, failureListeners, transportConnection| Constructor and Description |
|---|
ActiveMQProtonRemotingConnection(ProtonProtocolManager manager,
AMQPConnectionContext amqpConnection,
Connection transportConnection,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferReceived(Object connectionID,
ActiveMQBuffer buffer)
called by the remoting connection when a buffer is received.
|
boolean |
checkDataReceived()
returns true if any data has been received since the last time this method was called.
|
void |
destroy()
destroys this connection.
|
void |
disconnect(boolean criticalError)
Disconnect the connection, closing all channels
|
void |
disconnect(String scaleDownNodeID,
boolean criticalError)
Disconnect the connection, closing all channels
|
void |
fail(ActiveMQException me,
String scaleDownTargetNodeID)
called when the underlying connection fails.
|
void |
flush()
flush all outstanding data from the connection.
|
Executor |
getExecutor() |
ProtonProtocolManager |
getManager() |
boolean |
isClient()
Returns whether or not the
RemotingConnection is a client |
boolean |
isDestroyed()
Returns true if this
RemotingConnection has been destroyed. |
void |
killMessage(SimpleString nodeID)
if slow consumer is killed,send the msessage to client.
|
addCloseListener, addFailureListener, callClosingListeners, callFailureListeners, createTransportBuffer, fail, getCreationTime, getFailureListeners, getID, getLocalAddress, getRemoteAddress, getTransportConnection, isSupportReconnect, isWritable, removeCloseListener, removeCloseListeners, removeFailureListener, removeFailureListeners, setCloseListeners, setFailureListenerspublic ActiveMQProtonRemotingConnection(ProtonProtocolManager manager, AMQPConnectionContext amqpConnection, Connection transportConnection, Executor executor)
public Executor getExecutor()
public ProtonProtocolManager getManager()
public void fail(ActiveMQException me, String scaleDownTargetNodeID)
RemotingConnectionme - the exception that caused the failurescaleDownTargetNodeID - the ID of the node where scale down is targetedpublic void destroy()
RemotingConnectionpublic boolean isClient()
RemotingConnectionRemotingConnection is a clientpublic boolean isDestroyed()
RemotingConnectionRemotingConnection has been destroyed.public void disconnect(boolean criticalError)
RemotingConnectionpublic void disconnect(String scaleDownNodeID, boolean criticalError)
public boolean checkDataReceived()
RemotingConnectioncheckDataReceived in interface RemotingConnectioncheckDataReceived in class AbstractRemotingConnectionpublic void flush()
RemotingConnectionpublic void bufferReceived(Object connectionID, ActiveMQBuffer buffer)
BufferHandlerbufferReceived in interface BufferHandlerbufferReceived in class AbstractRemotingConnectionconnectionID - the connection the buffer was received onbuffer - the buffer to decodepublic void killMessage(SimpleString nodeID)
RemotingConnectionCopyright © 2024 The Apache Software Foundation. All rights reserved.