public class ConnectionImpl extends EndpointImpl implements ProtonJConnection
Connection.Factory| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CHANNELS |
| Constructor and Description |
|---|
ConnectionImpl()
Application code should use
Connection.Factory.create() instead. |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.qpid.proton.engine.impl.LinkNode<LinkImpl> |
addLinkEndpoint(LinkImpl endpoint) |
protected org.apache.qpid.proton.engine.impl.LinkNode<SessionImpl> |
addSessionEndpoint(SessionImpl endpoint) |
void |
collect(Collector collector) |
protected ConnectionImpl |
getConnectionImpl() |
java.lang.String |
getContainer() |
java.lang.Object |
getContext() |
java.lang.String |
getHostname() |
java.lang.String |
getLocalContainerId() |
int |
getMaxChannels() |
Reactor |
getReactor() |
java.lang.String |
getRemoteContainer() |
Symbol[] |
getRemoteDesiredCapabilities() |
java.lang.String |
getRemoteHostname() |
Symbol[] |
getRemoteOfferedCapabilities() |
java.util.Map<Symbol,java.lang.Object> |
getRemoteProperties() |
TransportImpl |
getTransport() |
DeliveryImpl |
getWorkHead()
Returns the head of the delivery work list.
|
java.util.Iterator<DeliveryImpl> |
getWorkSequence() |
Link |
linkHead(java.util.EnumSet<EndpointState> local,
java.util.EnumSet<EndpointState> remote)
Returns the head of the list of links in the specified states.
|
void |
removeTransportWork(DeliveryImpl delivery) |
SessionImpl |
session()
Returns a newly created session
TODO does the Connection's channel-max property limit how many sessions can be created,
or opened, or neither?
|
Session |
sessionHead(java.util.EnumSet<EndpointState> local,
java.util.EnumSet<EndpointState> remote)
Returns the head of the list of sessions in the specified states.
|
void |
setContainer(java.lang.String container) |
void |
setContext(java.lang.Object context)
Sets an arbitrary an application owned object on the end-point.
|
void |
setDesiredCapabilities(Symbol[] capabilities) |
void |
setHostname(java.lang.String hostname)
Set the name of the host (either fully qualified or relative) to which
this connection is connecting to.
|
void |
setLocalContainerId(java.lang.String localContainerId) |
void |
setOfferedCapabilities(Symbol[] capabilities) |
void |
setProperties(java.util.Map<Symbol,java.lang.Object> properties) |
void |
setReactor(Reactor reactor) |
attachments, close, free, getCondition, getLocalState, getRemoteCondition, getRemoteState, open, setConditionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfreeclose, free, getCondition, getLocalState, getRemoteCondition, getRemoteState, open, setConditionattachmentspublic static final int MAX_CHANNELS
public ConnectionImpl()
Connection.Factory.create() instead.public SessionImpl session()
Connectionsession in interface Connectionsession in interface ProtonJConnectionprotected org.apache.qpid.proton.engine.impl.LinkNode<SessionImpl> addSessionEndpoint(SessionImpl endpoint)
protected org.apache.qpid.proton.engine.impl.LinkNode<LinkImpl> addLinkEndpoint(LinkImpl endpoint)
public Session sessionHead(java.util.EnumSet<EndpointState> local, java.util.EnumSet<EndpointState> remote)
ConnectionsessionHead in interface ConnectionSession.next(EnumSet, EnumSet)public Link linkHead(java.util.EnumSet<EndpointState> local, java.util.EnumSet<EndpointState> remote)
ConnectionlinkHead in interface ConnectionLink.next(EnumSet, EnumSet)protected ConnectionImpl getConnectionImpl()
getConnectionImpl in class EndpointImplpublic int getMaxChannels()
getMaxChannels in interface ProtonJConnectionpublic java.lang.String getLocalContainerId()
public void setLocalContainerId(java.lang.String localContainerId)
setLocalContainerId in interface ProtonJConnectionpublic DeliveryImpl getWorkHead()
ConnectiongetWorkHead in interface ConnectionReceiver.recv(byte[], int, int),
Delivery.settle(),
Delivery.getWorkNext()public void setContainer(java.lang.String container)
setContainer in interface Connectionpublic java.lang.String getContainer()
getContainer in interface Connectionpublic void setHostname(java.lang.String hostname)
ConnectionsetHostname in interface Connectionhostname - the RFC1035 compliant host name.public java.lang.String getRemoteContainer()
getRemoteContainer in interface Connectionpublic java.lang.String getRemoteHostname()
getRemoteHostname in interface Connectionpublic void setOfferedCapabilities(Symbol[] capabilities)
setOfferedCapabilities in interface Connectionpublic void setDesiredCapabilities(Symbol[] capabilities)
setDesiredCapabilities in interface Connectionpublic Symbol[] getRemoteOfferedCapabilities()
getRemoteOfferedCapabilities in interface Connectionpublic Symbol[] getRemoteDesiredCapabilities()
getRemoteDesiredCapabilities in interface Connectionpublic void setProperties(java.util.Map<Symbol,java.lang.Object> properties)
setProperties in interface Connectionpublic java.util.Map<Symbol,java.lang.Object> getRemoteProperties()
getRemoteProperties in interface Connectionpublic java.lang.String getHostname()
getHostname in interface Connectionpublic java.util.Iterator<DeliveryImpl> getWorkSequence()
public TransportImpl getTransport()
getTransport in interface Connectionpublic void removeTransportWork(DeliveryImpl delivery)
public java.lang.Object getContext()
getContext in interface ConnectiongetContext in interface EndpointgetContext in class EndpointImplEndpoint.setContext(Object)public void setContext(java.lang.Object context)
EndpointsetContext in interface ConnectionsetContext in interface EndpointsetContext in class EndpointImplpublic void collect(Collector collector)
collect in interface Connectionpublic Reactor getReactor()
getReactor in interface Connectionpublic void setReactor(Reactor reactor)