public interface Connection extends org.apache.activemq.Service
| Modifier and Type | Method and Description |
|---|---|
void |
dispatchAsync(org.apache.activemq.command.Command command)
Sends a message to the client.
|
void |
dispatchSync(org.apache.activemq.command.Command message)
Sends a message to the client.
|
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 connection
|
Long |
getOldestActiveTransactionDuration()
Returns the number of active transactions established on this Connection.
|
String |
getRemoteAddress() |
ConnectionStatistics |
getStatistics()
Returns the statistics for this connection
|
boolean |
isActive() |
boolean |
isBlocked() |
boolean |
isConnected() |
boolean |
isFaultTolerantConnection() |
boolean |
isManageable() |
boolean |
isNetworkConnection()
return true if a network connection
|
boolean |
isSlow() |
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 error)
Handles an unexpected error associated with a connection.
|
void |
serviceExceptionAsync(IOException e) |
void |
updateClient(org.apache.activemq.command.ConnectionControl control) |
Connector getConnector()
void dispatchSync(org.apache.activemq.command.Command message)
message - the message to send to the client.void dispatchAsync(org.apache.activemq.command.Command command)
command - org.apache.activemq.command.Response service(org.apache.activemq.command.Command command)
command - void serviceException(Throwable error)
error - boolean isSlow()
boolean isBlocked()
boolean isConnected()
boolean isActive()
int getDispatchQueueSize()
ConnectionStatistics getStatistics()
boolean isManageable()
String getRemoteAddress()
void serviceExceptionAsync(IOException e)
String getConnectionId()
boolean isNetworkConnection()
boolean isFaultTolerantConnection()
void updateClient(org.apache.activemq.command.ConnectionControl control)
int getActiveTransactionCount()
Long getOldestActiveTransactionDuration()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.