Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache » activemq » broker » [javadoc | source]
org.apache.activemq.broker
public class: TransportConnection [javadoc | source]
java.lang.Object
   org.apache.activemq.broker.TransportConnection

All Implemented Interfaces:
    Task, CommandVisitor, Connection

Direct Known Subclasses:
    ManagedTransportConnection

Field Summary
protected final  Broker broker     
protected final  TransportConnector connector     
protected final  Map<ConnectionId, ConnectionState> brokerConnectionStates     
protected  BrokerInfo brokerInfo     
protected final  List<Command> dispatchQueue     
protected  TaskRunner taskRunner     
protected final  AtomicReference<IOException> transportException     
protected  AtomicBoolean dispatchStopped     
Constructor:
 public TransportConnection(TransportConnector connector,
    Transport transport,
    Broker broker,
    TaskRunnerFactory taskRunnerFactory) 
    Parameters:
    connector -
    transport -
    broker -
    taskRunnerFactory - - can be null if you want direct dispatch to the transport else commands are sent async.
Method from org.apache.activemq.broker.TransportConnection Summary:
dispatch,   dispatchAsync,   dispatchSync,   doMark,   doStop,   getConnectionId,   getConnector,   getDispatchQueueSize,   getMessageAuthorizationPolicy,   getProtocolVersion,   getRemoteAddress,   getStatistics,   isActive,   isBlocked,   isBlockedCandidate,   isConnected,   isManageable,   isMarkedBlockedCandidate,   isMarkedCandidate,   isNetworkConnection,   isPendingStop,   isSlow,   isStarting,   iterate,   listConnectionStates,   lookupConnectionState,   lookupConnectionState,   lookupConnectionState,   lookupConnectionState,   lookupConnectionState,   processAddConnection,   processAddConsumer,   processAddDestination,   processAddProducer,   processAddSession,   processBeginTransaction,   processBrokerInfo,   processCommitTransactionOnePhase,   processCommitTransactionTwoPhase,   processConnectionControl,   processConnectionError,   processConsumerControl,   processControlCommand,   processDispatch,   processEndTransaction,   processFlush,   processForgetTransaction,   processKeepAlive,   processMessage,   processMessageAck,   processMessageDispatch,   processMessageDispatchNotification,   processMessagePull,   processPrepareTransaction,   processProducerAck,   processRecoverTransactions,   processRemoveConnection,   processRemoveConsumer,   processRemoveDestination,   processRemoveProducer,   processRemoveSession,   processRemoveSubscription,   processRollbackTransaction,   processShutdown,   processWireFormat,   registerConnectionState,   service,   serviceException,   serviceExceptionAsync,   serviceTransportException,   setActive,   setBlocked,   setBlockedCandidate,   setConnected,   setMarkedCandidate,   setMessageAuthorizationPolicy,   setPendingStop,   setSlow,   setStarting,   start,   stop,   stopAsync,   toString,   unregisterConnectionState
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.broker.TransportConnection Detail:
 protected  void dispatch(Command command) throws IOException 
 public  void dispatchAsync(Command message) 
 public  void dispatchSync(Command message) 
 public  void doMark() 
    Mark the Connection, so we can deem if it's collectable on the next sweep
 protected  void doStop() throws Exception, InterruptedException 
 public String getConnectionId() 
 public Connector getConnector() 
 public int getDispatchQueueSize() 
    Returns the number of messages to be dispatched to this connection
 public MessageAuthorizationPolicy getMessageAuthorizationPolicy() 
 public int getProtocolVersion() 
 public String getRemoteAddress() 
 public ConnectionStatistics getStatistics() 
    Returns the statistics for this connection
 public boolean isActive() 
 public boolean isBlocked() 
 public boolean isBlockedCandidate() 
 public boolean isConnected() 
 public boolean isManageable() 
 public boolean isMarkedBlockedCandidate() 
 public boolean isMarkedCandidate() 
 public synchronized boolean isNetworkConnection() 
 public synchronized boolean isPendingStop() 
 public boolean isSlow() 
 public synchronized boolean isStarting() 
 public boolean iterate() 
 protected synchronized List<TransportConnectionState> listConnectionStates() 
 protected synchronized TransportConnectionState lookupConnectionState(String connectionId) 
 protected synchronized TransportConnectionState lookupConnectionState(ConsumerId id) 
 protected synchronized TransportConnectionState lookupConnectionState(ProducerId id) 
 protected synchronized TransportConnectionState lookupConnectionState(SessionId id) 
 protected synchronized TransportConnectionState lookupConnectionState(ConnectionId connectionId) 
 public Response processAddConnection(ConnectionInfo info) throws Exception 
 public Response processAddConsumer(ConsumerInfo info) throws Exception 
 public Response processAddDestination(DestinationInfo info) throws Exception 
 public Response processAddProducer(ProducerInfo info) throws Exception 
 public Response processAddSession(SessionInfo info) throws Exception 
 public Response processBeginTransaction(TransactionInfo info) throws Exception 
 public Response processBrokerInfo(BrokerInfo info) 
 public Response processCommitTransactionOnePhase(TransactionInfo info) throws Exception 
 public Response processCommitTransactionTwoPhase(TransactionInfo info) throws Exception 
 public Response processConnectionControl(ConnectionControl control) throws Exception 
 public Response processConnectionError(ConnectionError error) throws Exception 
 public Response processConsumerControl(ConsumerControl control) throws Exception 
 public Response processControlCommand(ControlCommand command) throws Exception 
 protected  void processDispatch(Command command) throws IOException 
 public Response processEndTransaction(TransactionInfo info) throws Exception 
 public Response processFlush(FlushCommand command) throws Exception 
 public Response processForgetTransaction(TransactionInfo info) throws Exception 
 public Response processKeepAlive(KeepAliveInfo info) throws Exception 
 public Response processMessage(Message messageSend) throws Exception 
 public Response processMessageAck(MessageAck ack) throws Exception 
 public Response processMessageDispatch(MessageDispatch dispatch) throws Exception 
 public Response processMessageDispatchNotification(MessageDispatchNotification notification) throws Exception 
 public Response processMessagePull(MessagePull pull) throws Exception 
 public Response processPrepareTransaction(TransactionInfo info) throws Exception 
 public Response processProducerAck(ProducerAck ack) throws Exception 
 public Response processRecoverTransactions(TransactionInfo info) throws Exception 
 public synchronized Response processRemoveConnection(ConnectionId id,
    long lastDeliveredSequenceId) throws InterruptedException 
 public Response processRemoveConsumer(ConsumerId id,
    long lastDeliveredSequenceId) throws Exception 
 public Response processRemoveDestination(DestinationInfo info) throws Exception 
 public Response processRemoveProducer(ProducerId id) throws Exception 
 public Response processRemoveSession(SessionId id,
    long lastDeliveredSequenceId) throws Exception 
 public Response processRemoveSubscription(RemoveSubscriptionInfo info) throws Exception 
 public Response processRollbackTransaction(TransactionInfo info) throws Exception 
 public Response processShutdown(ShutdownInfo info) throws Exception 
 public Response processWireFormat(WireFormatInfo info) throws Exception 
 protected synchronized TransportConnectionState registerConnectionState(ConnectionId connectionId,
    TransportConnectionState state) 
 public Response service(Command command) 
 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.
 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.
 public  void serviceTransportException(IOException e) 
 public  void setActive(boolean active) 
 public  void setBlocked(boolean blocked) 
 public  void setBlockedCandidate(boolean blockedCandidate) 
 public  void setConnected(boolean connected) 
 public  void setMarkedCandidate(boolean markedCandidate) 
 public  void setMessageAuthorizationPolicy(MessageAuthorizationPolicy messageAuthorizationPolicy) 
 protected synchronized  void setPendingStop(boolean pendingStop) 
 public  void setSlow(boolean slow) 
 protected synchronized  void setStarting(boolean starting) 
 public  void start() throws Exception 
 public  void stop() throws Exception 
 public  void stopAsync() 
 public String toString() 
 protected synchronized TransportConnectionState unregisterConnectionState(ConnectionId connectionId)