Package org.apache.activemq.broker
Class TransportConnection
- java.lang.Object
-
- org.apache.activemq.broker.TransportConnection
-
- All Implemented Interfaces:
Connection
,org.apache.activemq.Service
,org.apache.activemq.state.CommandVisitor
,org.apache.activemq.thread.Task
- Direct Known Subclasses:
ManagedTransportConnection
public class TransportConnection extends Object implements Connection, org.apache.activemq.thread.Task, org.apache.activemq.state.CommandVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected Broker
broker
protected Map<org.apache.activemq.command.ConnectionId,org.apache.activemq.state.ConnectionState>
brokerConnectionStates
protected org.apache.activemq.command.BrokerInfo
brokerInfo
protected BrokerService
brokerService
protected TransportConnector
connector
protected List<org.apache.activemq.command.Command>
dispatchQueue
protected AtomicBoolean
dispatchStopped
protected org.apache.activemq.thread.TaskRunner
taskRunner
protected AtomicReference<Throwable>
transportException
-
Constructor Summary
Constructors Constructor Description TransportConnection(TransportConnector connector, org.apache.activemq.transport.Transport transport, Broker broker, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, org.apache.activemq.thread.TaskRunnerFactory stopTaskRunnerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delayedStop(int waitTime, String reason, Throwable cause)
protected void
dispatch(org.apache.activemq.command.Command command)
void
dispatchAsync(org.apache.activemq.command.Command message)
Sends a message to the client.void
dispatchSync(org.apache.activemq.command.Command message)
Sends a message to the client.void
doMark()
Mark the Connection, so we can deem if it's collectable on the next sweepprotected void
doStop()
int
getActiveTransactionCount()
Returns the number of active transactions established on this Connection.String
getConnectionId()
Connector
getConnector()
int
getDispatchQueueSize()
Returns the number of messages to be dispatched to this connectionprotected String
getDuplexNetworkConnectorId()
MessageAuthorizationPolicy
getMessageAuthorizationPolicy()
Long
getOldestActiveTransactionDuration()
Returns the number of active transactions established on this Connection.ProducerBrokerExchange
getProducerBrokerExchangeIfExists(org.apache.activemq.command.ProducerInfo producerInfo)
int
getProtocolVersion()
String
getRemoteAddress()
org.apache.activemq.command.WireFormatInfo
getRemoteWireFormatInfo()
ConnectionStatistics
getStatistics()
Returns the statistics for this connectionprotected CountDownLatch
getStopped()
org.apache.activemq.transport.Transport
getTransport()
boolean
isActive()
boolean
isBlocked()
boolean
isBlockedCandidate()
boolean
isConnected()
boolean
isFaultTolerantConnection()
boolean
isManageable()
boolean
isMarkedBlockedCandidate()
boolean
isMarkedCandidate()
boolean
isNetworkConnection()
return true if a network connectionboolean
isPendingStop()
boolean
isSlow()
boolean
isStarting()
boolean
isStopping()
boolean
iterate()
protected List<TransportConnectionState>
listConnectionStates()
protected TransportConnectionState
lookupConnectionState(String connectionId)
TransportConnectionState
lookupConnectionState(org.apache.activemq.command.ConnectionId connectionId)
protected TransportConnectionState
lookupConnectionState(org.apache.activemq.command.ConsumerId id)
protected TransportConnectionState
lookupConnectionState(org.apache.activemq.command.ProducerId id)
protected TransportConnectionState
lookupConnectionState(org.apache.activemq.command.SessionId id)
org.apache.activemq.command.Response
processAddConnection(org.apache.activemq.command.ConnectionInfo info)
org.apache.activemq.command.Response
processAddConsumer(org.apache.activemq.command.ConsumerInfo info)
org.apache.activemq.command.Response
processAddDestination(org.apache.activemq.command.DestinationInfo info)
org.apache.activemq.command.Response
processAddProducer(org.apache.activemq.command.ProducerInfo info)
org.apache.activemq.command.Response
processAddSession(org.apache.activemq.command.SessionInfo info)
org.apache.activemq.command.Response
processBeginTransaction(org.apache.activemq.command.TransactionInfo info)
org.apache.activemq.command.Response
processBrokerInfo(org.apache.activemq.command.BrokerInfo info)
org.apache.activemq.command.Response
processBrokerSubscriptionInfo(org.apache.activemq.command.BrokerSubscriptionInfo info)
org.apache.activemq.command.Response
processCommitTransactionOnePhase(org.apache.activemq.command.TransactionInfo info)
org.apache.activemq.command.Response
processCommitTransactionTwoPhase(org.apache.activemq.command.TransactionInfo info)
org.apache.activemq.command.Response
processConnectionControl(org.apache.activemq.command.ConnectionControl control)
org.apache.activemq.command.Response
processConnectionError(org.apache.activemq.command.ConnectionError error)
org.apache.activemq.command.Response
processConsumerControl(org.apache.activemq.command.ConsumerControl control)
org.apache.activemq.command.Response
processControlCommand(org.apache.activemq.command.ControlCommand command)
protected void
processDispatch(org.apache.activemq.command.Command command)
org.apache.activemq.command.Response
processEndTransaction(org.apache.activemq.command.TransactionInfo info)
org.apache.activemq.command.Response
processFlush(org.apache.activemq.command.FlushCommand command)
org.apache.activemq.command.Response
processForgetTransaction(org.apache.activemq.command.TransactionInfo info)
org.apache.activemq.command.Response
processKeepAlive(org.apache.activemq.command.KeepAliveInfo info)
org.apache.activemq.command.Response
processMessage(org.apache.activemq.command.Message messageSend)
org.apache.activemq.command.Response
processMessageAck(org.apache.activemq.command.MessageAck ack)
org.apache.activemq.command.Response
processMessageDispatch(org.apache.activemq.command.MessageDispatch dispatch)
org.apache.activemq.command.Response
processMessageDispatchNotification(org.apache.activemq.command.MessageDispatchNotification notification)
org.apache.activemq.command.Response
processMessagePull(org.apache.activemq.command.MessagePull pull)
org.apache.activemq.command.Response
processPrepareTransaction(org.apache.activemq.command.TransactionInfo info)
org.apache.activemq.command.Response
processProducerAck(org.apache.activemq.command.ProducerAck ack)
org.apache.activemq.command.Response
processRecoverTransactions(org.apache.activemq.command.TransactionInfo info)
org.apache.activemq.command.Response
processRemoveConnection(org.apache.activemq.command.ConnectionId id, long lastDeliveredSequenceId)
org.apache.activemq.command.Response
processRemoveConsumer(org.apache.activemq.command.ConsumerId id, long lastDeliveredSequenceId)
org.apache.activemq.command.Response
processRemoveDestination(org.apache.activemq.command.DestinationInfo info)
org.apache.activemq.command.Response
processRemoveProducer(org.apache.activemq.command.ProducerId id)
org.apache.activemq.command.Response
processRemoveSession(org.apache.activemq.command.SessionId id, long lastDeliveredSequenceId)
org.apache.activemq.command.Response
processRemoveSubscription(org.apache.activemq.command.RemoveSubscriptionInfo info)
org.apache.activemq.command.Response
processRollbackTransaction(org.apache.activemq.command.TransactionInfo info)
org.apache.activemq.command.Response
processShutdown(org.apache.activemq.command.ShutdownInfo info)
org.apache.activemq.command.Response
processWireFormat(org.apache.activemq.command.WireFormatInfo info)
protected TransportConnectionState
registerConnectionState(org.apache.activemq.command.ConnectionId connectionId, TransportConnectionState state)
org.apache.activemq.command.Response
service(org.apache.activemq.command.Command command)
Services a client command and submits it to the broker.void
serviceException(Throwable e)
Closes a clients connection due to a detected error.void
serviceExceptionAsync(IOException e)
Calls the serviceException method in an async thread.void
serviceTransportException(IOException e)
void
setActive(boolean active)
void
setBlocked(boolean blocked)
void
setBlockedCandidate(boolean blockedCandidate)
void
setConnected(boolean connected)
protected void
setDuplexNetworkConnectorId(String duplexNetworkConnectorId)
void
setMarkedCandidate(boolean markedCandidate)
void
setMessageAuthorizationPolicy(MessageAuthorizationPolicy messageAuthorizationPolicy)
void
setSlow(boolean slow)
void
start()
void
stop()
void
stopAsync()
void
stopAsync(Throwable cause)
String
toString()
protected TransportConnectionState
unregisterConnectionState(org.apache.activemq.command.ConnectionId connectionId)
void
updateClient(org.apache.activemq.command.ConnectionControl control)
-
-
-
Field Detail
-
broker
protected final Broker broker
-
brokerService
protected final BrokerService brokerService
-
connector
protected final TransportConnector connector
-
brokerConnectionStates
protected final Map<org.apache.activemq.command.ConnectionId,org.apache.activemq.state.ConnectionState> brokerConnectionStates
-
brokerInfo
protected org.apache.activemq.command.BrokerInfo brokerInfo
-
dispatchQueue
protected final List<org.apache.activemq.command.Command> dispatchQueue
-
taskRunner
protected org.apache.activemq.thread.TaskRunner taskRunner
-
transportException
protected final AtomicReference<Throwable> transportException
-
dispatchStopped
protected AtomicBoolean dispatchStopped
-
-
Constructor Detail
-
TransportConnection
public TransportConnection(TransportConnector connector, org.apache.activemq.transport.Transport transport, Broker broker, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, org.apache.activemq.thread.TaskRunnerFactory stopTaskRunnerFactory)
- Parameters:
taskRunnerFactory
- - can be null if you want direct dispatch to the transport else commands are sent async.stopTaskRunnerFactory
- - can not be null, used for stopping this connection.
-
-
Method Detail
-
getDispatchQueueSize
public int getDispatchQueueSize()
Returns the number of messages to be dispatched to this connection- Specified by:
getDispatchQueueSize
in interfaceConnection
- Returns:
- size of dispatch queue
-
serviceTransportException
public void serviceTransportException(IOException e)
-
serviceExceptionAsync
public void serviceExceptionAsync(IOException e)
Calls the serviceException method in an async thread. Since handling a service exception closes a socket, we should not tie up broker threads since client sockets may hang or cause deadlocks.- Specified by:
serviceExceptionAsync
in interfaceConnection
-
serviceException
public void serviceException(Throwable e)
Closes a clients connection due to a detected error. Errors are ignored if: the client is closing or broker is closing. Otherwise, the connection error transmitted to the client before stopping it's transport.- Specified by:
serviceException
in interfaceConnection
-
service
public org.apache.activemq.command.Response service(org.apache.activemq.command.Command command)
Description copied from interface:Connection
Services a client command and submits it to the broker.- Specified by:
service
in interfaceConnection
- Returns:
- Response
-
processKeepAlive
public org.apache.activemq.command.Response processKeepAlive(org.apache.activemq.command.KeepAliveInfo info) throws Exception
- Specified by:
processKeepAlive
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processRemoveSubscription
public org.apache.activemq.command.Response processRemoveSubscription(org.apache.activemq.command.RemoveSubscriptionInfo info) throws Exception
- Specified by:
processRemoveSubscription
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processWireFormat
public org.apache.activemq.command.Response processWireFormat(org.apache.activemq.command.WireFormatInfo info) throws Exception
- Specified by:
processWireFormat
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processShutdown
public org.apache.activemq.command.Response processShutdown(org.apache.activemq.command.ShutdownInfo info) throws Exception
- Specified by:
processShutdown
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processFlush
public org.apache.activemq.command.Response processFlush(org.apache.activemq.command.FlushCommand command) throws Exception
- Specified by:
processFlush
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processBeginTransaction
public org.apache.activemq.command.Response processBeginTransaction(org.apache.activemq.command.TransactionInfo info) throws Exception
- Specified by:
processBeginTransaction
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
getActiveTransactionCount
public int getActiveTransactionCount()
Description copied from interface:Connection
Returns the number of active transactions established on this Connection.- Specified by:
getActiveTransactionCount
in interfaceConnection
- Returns:
- the number of active transactions established on this Connection..
-
getOldestActiveTransactionDuration
public Long getOldestActiveTransactionDuration()
Description copied from interface:Connection
Returns the number of active transactions established on this Connection.- Specified by:
getOldestActiveTransactionDuration
in interfaceConnection
- Returns:
- the number of active transactions established on this Connection..
-
processEndTransaction
public org.apache.activemq.command.Response processEndTransaction(org.apache.activemq.command.TransactionInfo info) throws Exception
- Specified by:
processEndTransaction
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processPrepareTransaction
public org.apache.activemq.command.Response processPrepareTransaction(org.apache.activemq.command.TransactionInfo info) throws Exception
- Specified by:
processPrepareTransaction
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processCommitTransactionOnePhase
public org.apache.activemq.command.Response processCommitTransactionOnePhase(org.apache.activemq.command.TransactionInfo info) throws Exception
- Specified by:
processCommitTransactionOnePhase
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processCommitTransactionTwoPhase
public org.apache.activemq.command.Response processCommitTransactionTwoPhase(org.apache.activemq.command.TransactionInfo info) throws Exception
- Specified by:
processCommitTransactionTwoPhase
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processRollbackTransaction
public org.apache.activemq.command.Response processRollbackTransaction(org.apache.activemq.command.TransactionInfo info) throws Exception
- Specified by:
processRollbackTransaction
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processForgetTransaction
public org.apache.activemq.command.Response processForgetTransaction(org.apache.activemq.command.TransactionInfo info) throws Exception
- Specified by:
processForgetTransaction
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processRecoverTransactions
public org.apache.activemq.command.Response processRecoverTransactions(org.apache.activemq.command.TransactionInfo info) throws Exception
- Specified by:
processRecoverTransactions
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processMessage
public org.apache.activemq.command.Response processMessage(org.apache.activemq.command.Message messageSend) throws Exception
- Specified by:
processMessage
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processMessageAck
public org.apache.activemq.command.Response processMessageAck(org.apache.activemq.command.MessageAck ack) throws Exception
- Specified by:
processMessageAck
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processMessagePull
public org.apache.activemq.command.Response processMessagePull(org.apache.activemq.command.MessagePull pull) throws Exception
- Specified by:
processMessagePull
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processMessageDispatchNotification
public org.apache.activemq.command.Response processMessageDispatchNotification(org.apache.activemq.command.MessageDispatchNotification notification) throws Exception
- Specified by:
processMessageDispatchNotification
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processAddDestination
public org.apache.activemq.command.Response processAddDestination(org.apache.activemq.command.DestinationInfo info) throws Exception
- Specified by:
processAddDestination
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processRemoveDestination
public org.apache.activemq.command.Response processRemoveDestination(org.apache.activemq.command.DestinationInfo info) throws Exception
- Specified by:
processRemoveDestination
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processAddProducer
public org.apache.activemq.command.Response processAddProducer(org.apache.activemq.command.ProducerInfo info) throws Exception
- Specified by:
processAddProducer
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processRemoveProducer
public org.apache.activemq.command.Response processRemoveProducer(org.apache.activemq.command.ProducerId id) throws Exception
- Specified by:
processRemoveProducer
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processAddConsumer
public org.apache.activemq.command.Response processAddConsumer(org.apache.activemq.command.ConsumerInfo info) throws Exception
- Specified by:
processAddConsumer
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processRemoveConsumer
public org.apache.activemq.command.Response processRemoveConsumer(org.apache.activemq.command.ConsumerId id, long lastDeliveredSequenceId) throws Exception
- Specified by:
processRemoveConsumer
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processAddSession
public org.apache.activemq.command.Response processAddSession(org.apache.activemq.command.SessionInfo info) throws Exception
- Specified by:
processAddSession
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processRemoveSession
public org.apache.activemq.command.Response processRemoveSession(org.apache.activemq.command.SessionId id, long lastDeliveredSequenceId) throws Exception
- Specified by:
processRemoveSession
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processAddConnection
public org.apache.activemq.command.Response processAddConnection(org.apache.activemq.command.ConnectionInfo info) throws Exception
- Specified by:
processAddConnection
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processRemoveConnection
public org.apache.activemq.command.Response processRemoveConnection(org.apache.activemq.command.ConnectionId id, long lastDeliveredSequenceId) throws InterruptedException
- Specified by:
processRemoveConnection
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
InterruptedException
-
processProducerAck
public org.apache.activemq.command.Response processProducerAck(org.apache.activemq.command.ProducerAck ack) throws Exception
- Specified by:
processProducerAck
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
getConnector
public Connector getConnector()
- Specified by:
getConnector
in interfaceConnection
- Returns:
- the connector that created this connection.
-
dispatchSync
public void dispatchSync(org.apache.activemq.command.Command message)
Description copied from interface:Connection
Sends a message to the client.- Specified by:
dispatchSync
in interfaceConnection
- Parameters:
message
- the message to send to the client.
-
dispatchAsync
public void dispatchAsync(org.apache.activemq.command.Command message)
Description copied from interface:Connection
Sends a message to the client.- Specified by:
dispatchAsync
in interfaceConnection
-
processDispatch
protected void processDispatch(org.apache.activemq.command.Command command) throws IOException
- Throws:
IOException
-
iterate
public boolean iterate()
- Specified by:
iterate
in interfaceorg.apache.activemq.thread.Task
-
getStatistics
public ConnectionStatistics getStatistics()
Returns the statistics for this connection- Specified by:
getStatistics
in interfaceConnection
-
getMessageAuthorizationPolicy
public MessageAuthorizationPolicy getMessageAuthorizationPolicy()
-
setMessageAuthorizationPolicy
public void setMessageAuthorizationPolicy(MessageAuthorizationPolicy messageAuthorizationPolicy)
-
isManageable
public boolean isManageable()
- Specified by:
isManageable
in interfaceConnection
- Returns:
- true if the Connection will process control commands
-
start
public void start() throws Exception
- Specified by:
start
in interfaceorg.apache.activemq.Service
- Throws:
Exception
-
stop
public void stop() throws Exception
- Specified by:
stop
in interfaceorg.apache.activemq.Service
- Throws:
Exception
-
stopAsync
public void stopAsync(Throwable cause)
-
stopAsync
public void stopAsync()
-
isBlockedCandidate
public boolean isBlockedCandidate()
- Returns:
- Returns the blockedCandidate.
-
setBlockedCandidate
public void setBlockedCandidate(boolean blockedCandidate)
- Parameters:
blockedCandidate
- The blockedCandidate to set.
-
isMarkedCandidate
public boolean isMarkedCandidate()
- Returns:
- Returns the markedCandidate.
-
setMarkedCandidate
public void setMarkedCandidate(boolean markedCandidate)
- Parameters:
markedCandidate
- The markedCandidate to set.
-
setSlow
public void setSlow(boolean slow)
- Parameters:
slow
- The slow to set.
-
isSlow
public boolean isSlow()
- Specified by:
isSlow
in interfaceConnection
- Returns:
- true if the Connection is slow
-
isMarkedBlockedCandidate
public boolean isMarkedBlockedCandidate()
- Returns:
- true if the Connection is potentially blocked
-
doMark
public void doMark()
Mark the Connection, so we can deem if it's collectable on the next sweep
-
isBlocked
public boolean isBlocked()
- Specified by:
isBlocked
in interfaceConnection
- Returns:
- if after being marked, the Connection is still writing
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceConnection
- Returns:
- true if the Connection is connected
-
setBlocked
public void setBlocked(boolean blocked)
- Parameters:
blocked
- The blocked to set.
-
setConnected
public void setConnected(boolean connected)
- Parameters:
connected
- The connected to set.
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceConnection
- Returns:
- true if the Connection is active
-
setActive
public void setActive(boolean active)
- Parameters:
active
- The active to set.
-
isStarting
public boolean isStarting()
- Returns:
- true if the Connection is starting
-
isNetworkConnection
public boolean isNetworkConnection()
Description copied from interface:Connection
return true if a network connection- Specified by:
isNetworkConnection
in interfaceConnection
- Returns:
- if this is a network connection
-
isFaultTolerantConnection
public boolean isFaultTolerantConnection()
- Specified by:
isFaultTolerantConnection
in interfaceConnection
- Returns:
- true if a fault tolerant connection
-
isPendingStop
public boolean isPendingStop()
- Returns:
- true if the Connection needs to stop
-
processBrokerInfo
public org.apache.activemq.command.Response processBrokerInfo(org.apache.activemq.command.BrokerInfo info)
- Specified by:
processBrokerInfo
in interfaceorg.apache.activemq.state.CommandVisitor
-
dispatch
protected void dispatch(org.apache.activemq.command.Command command) throws IOException
- Throws:
IOException
-
getRemoteAddress
public String getRemoteAddress()
- Specified by:
getRemoteAddress
in interfaceConnection
- Returns:
- the source address for this connection
-
getTransport
public org.apache.activemq.transport.Transport getTransport()
-
getConnectionId
public String getConnectionId()
- Specified by:
getConnectionId
in interfaceConnection
-
updateClient
public void updateClient(org.apache.activemq.command.ConnectionControl control)
- Specified by:
updateClient
in interfaceConnection
-
getProducerBrokerExchangeIfExists
public ProducerBrokerExchange getProducerBrokerExchangeIfExists(org.apache.activemq.command.ProducerInfo producerInfo)
-
getProtocolVersion
public int getProtocolVersion()
-
processControlCommand
public org.apache.activemq.command.Response processControlCommand(org.apache.activemq.command.ControlCommand command) throws Exception
- Specified by:
processControlCommand
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processMessageDispatch
public org.apache.activemq.command.Response processMessageDispatch(org.apache.activemq.command.MessageDispatch dispatch) throws Exception
- Specified by:
processMessageDispatch
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processConnectionControl
public org.apache.activemq.command.Response processConnectionControl(org.apache.activemq.command.ConnectionControl control) throws Exception
- Specified by:
processConnectionControl
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processConnectionError
public org.apache.activemq.command.Response processConnectionError(org.apache.activemq.command.ConnectionError error) throws Exception
- Specified by:
processConnectionError
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
processConsumerControl
public org.apache.activemq.command.Response processConsumerControl(org.apache.activemq.command.ConsumerControl control) throws Exception
- Specified by:
processConsumerControl
in interfaceorg.apache.activemq.state.CommandVisitor
- Throws:
Exception
-
registerConnectionState
protected TransportConnectionState registerConnectionState(org.apache.activemq.command.ConnectionId connectionId, TransportConnectionState state)
-
unregisterConnectionState
protected TransportConnectionState unregisterConnectionState(org.apache.activemq.command.ConnectionId connectionId)
-
listConnectionStates
protected List<TransportConnectionState> listConnectionStates()
-
lookupConnectionState
protected TransportConnectionState lookupConnectionState(String connectionId)
-
lookupConnectionState
protected TransportConnectionState lookupConnectionState(org.apache.activemq.command.ConsumerId id)
-
lookupConnectionState
protected TransportConnectionState lookupConnectionState(org.apache.activemq.command.ProducerId id)
-
lookupConnectionState
protected TransportConnectionState lookupConnectionState(org.apache.activemq.command.SessionId id)
-
lookupConnectionState
public TransportConnectionState lookupConnectionState(org.apache.activemq.command.ConnectionId connectionId)
-
setDuplexNetworkConnectorId
protected void setDuplexNetworkConnectorId(String duplexNetworkConnectorId)
-
getDuplexNetworkConnectorId
protected String getDuplexNetworkConnectorId()
-
isStopping
public boolean isStopping()
-
getStopped
protected CountDownLatch getStopped()
-
getRemoteWireFormatInfo
public org.apache.activemq.command.WireFormatInfo getRemoteWireFormatInfo()
-
-