public class AmqpConnection extends AmqpEndpointBase
AmqpEndpointBase.Attachment| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
closing |
(package private) ProtonJConnection |
connection |
(package private) java.util.HashSet<AmqpSender> |
senders |
(package private) AmqpTransport |
transport |
| Modifier | Constructor and Description |
|---|---|
private |
AmqpConnection(AmqpConnectOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Once the remote end, closes the transport is disconnected.
|
static AmqpConnection |
connect(AmqpConnectOptions options) |
AmqpSession |
createSession() |
void |
disconnect() |
Future<java.lang.Void> |
getConnectedFuture() |
protected AmqpConnection |
getConnection() |
Future<java.lang.Void> |
getDisconnectedFuture() |
protected Endpoint |
getEndpoint() |
int |
getMaxSessions() |
protected AmqpEndpointBase |
getParent() |
ProtocolTracer |
getProtocolTracer() |
java.lang.Throwable |
getTransportFailure() |
Future<java.lang.Throwable> |
getTransportFailureFuture() |
TransportState |
getTransportState() |
void |
onConnected(Callback<java.lang.Void> cb) |
void |
onDisconnected(Callback<java.lang.Void> cb) |
void |
onTransportFailure(Callback<java.lang.Throwable> cb) |
org.fusesource.hawtdispatch.DispatchQueue |
queue() |
void |
setProtocolTracer(ProtocolTracer protocolTracer) |
void |
waitForConnected() |
void |
waitForDisconnected() |
assertExecuting, assertNotOnDispatchQueue, attach, defer, getRemoteCloseFuture, getRemoteError, getRemoteOpenFuture, getRemoteState, getTransport, onRemoteClose, onRemoteOpen, pumpOut, toError, waitForRemoteClose, waitForRemoteOpenaddWatch, fireWatchesAmqpTransport transport
ProtonJConnection connection
java.util.HashSet<AmqpSender> senders
boolean closing
private AmqpConnection(AmqpConnectOptions options)
public static AmqpConnection connect(AmqpConnectOptions options)
public void waitForConnected()
throws java.lang.Exception
java.lang.Exceptionpublic Future<java.lang.Void> getConnectedFuture()
public void onConnected(Callback<java.lang.Void> cb)
protected Endpoint getEndpoint()
getEndpoint in class AmqpEndpointBaseprotected AmqpConnection getConnection()
getConnection in class AmqpEndpointBaseprotected AmqpEndpointBase getParent()
getParent in class AmqpEndpointBasepublic AmqpSession createSession()
public int getMaxSessions()
public void disconnect()
public void waitForDisconnected()
throws java.lang.Exception
java.lang.Exceptionpublic Future<java.lang.Void> getDisconnectedFuture()
public void onDisconnected(Callback<java.lang.Void> cb)
public TransportState getTransportState()
public java.lang.Throwable getTransportFailure()
public Future<java.lang.Throwable> getTransportFailureFuture()
public void onTransportFailure(Callback<java.lang.Throwable> cb)
public org.fusesource.hawtdispatch.DispatchQueue queue()
queue in class AmqpEndpointBasepublic void setProtocolTracer(ProtocolTracer protocolTracer)
public ProtocolTracer getProtocolTracer()
public void close()
close in class AmqpEndpointBase