public class ConnectionImpl extends EndpointImpl implements ProtonJConnection
Connection.Factory| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CHANNELS |
| Constructor and Description |
|---|
ConnectionImpl()
Deprecated.
This constructor's visibility will be reduced to the default scope in a future release.
Client code outside this module 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() |
String |
getContainer() |
Object |
getContext() |
String |
getHostname() |
String |
getLocalContainerId() |
int |
getMaxChannels() |
Reactor |
getReactor() |
String |
getRemoteContainer() |
Symbol[] |
getRemoteDesiredCapabilities() |
String |
getRemoteHostname() |
Symbol[] |
getRemoteOfferedCapabilities() |
Map<Symbol,Object> |
getRemoteProperties() |
TransportImpl |
getTransport() |
DeliveryImpl |
getWorkHead()
Returns the head of the delivery work list.
|
Iterator<DeliveryImpl> |
getWorkSequence() |
Link |
linkHead(EnumSet<EndpointState> local,
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(EnumSet<EndpointState> local,
EnumSet<EndpointState> remote)
Returns the head of the list of sessions in the specified states.
|
void |
setContainer(String container) |
void |
setContext(Object context)
Sets an arbitrary an application owned object on the end-point.
|
void |
setDesiredCapabilities(Symbol[] capabilities) |
void |
setHostname(String hostname) |
void |
setLocalContainerId(String localContainerId) |
void |
setOfferedCapabilities(Symbol[] capabilities) |
void |
setProperties(Map<Symbol,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
@Deprecated 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(EnumSet<EndpointState> local, EnumSet<EndpointState> remote)
ConnectionsessionHead in interface ConnectionSession.next(EnumSet, EnumSet)public Link linkHead(EnumSet<EndpointState> local, EnumSet<EndpointState> remote)
ConnectionlinkHead in interface ConnectionLink.next(EnumSet, EnumSet)protected ConnectionImpl getConnectionImpl()
getConnectionImpl in class EndpointImplpublic int getMaxChannels()
getMaxChannels in interface ProtonJConnectionpublic String getLocalContainerId()
public void setLocalContainerId(String localContainerId)
setLocalContainerId in interface ProtonJConnectionpublic DeliveryImpl getWorkHead()
ConnectiongetWorkHead in interface ConnectionReceiver.recv(byte[], int, int),
Delivery.settle(),
Delivery.getWorkNext()public void setContainer(String container)
setContainer in interface Connectionpublic String getContainer()
getContainer in interface Connectionpublic void setHostname(String hostname)
setHostname in interface Connectionpublic String getRemoteContainer()
getRemoteContainer in interface Connectionpublic 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(Map<Symbol,Object> properties)
setProperties in interface Connectionpublic Map<Symbol,Object> getRemoteProperties()
getRemoteProperties in interface Connectionpublic String getHostname()
getHostname in interface Connectionpublic Iterator<DeliveryImpl> getWorkSequence()
public TransportImpl getTransport()
getTransport in interface Connectionpublic void removeTransportWork(DeliveryImpl delivery)
public Object getContext()
getContext in interface ConnectiongetContext in interface EndpointgetContext in class EndpointImplEndpoint.setContext(Object)public void setContext(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)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.