Class ConnectionImpl
java.lang.Object
org.apache.qpid.proton.engine.impl.EndpointImpl
org.apache.qpid.proton.engine.impl.ConnectionImpl
- All Implemented Interfaces:
Connection,Endpoint,Extendable,ProtonJConnection,ProtonJEndpoint,ReactorChild
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.qpid.proton.engine.Connection
Connection.Factory -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.qpid.proton.engine.impl.LinkNode<LinkImpl>addLinkEndpoint(LinkImpl endpoint) protected org.apache.qpid.proton.engine.impl.LinkNode<SessionImpl>addSessionEndpoint(SessionImpl endpoint) voidprotected ConnectionImplintSymbol[]Symbol[]Returns the head of the delivery work list.linkHead(EnumSet<EndpointState> local, EnumSet<EndpointState> remote) Returns the head of the list of links in the specified states.voidremoveTransportWork(DeliveryImpl delivery) 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?sessionHead(EnumSet<EndpointState> local, EnumSet<EndpointState> remote) Returns the head of the list of sessions in the specified states.voidsetContainer(String container) voidsetContext(Object context) Sets an arbitrary an application owned object on the end-point.voidsetDesiredCapabilities(Symbol[] capabilities) voidsetHostname(String hostname) Set the name of the host (either fully qualified or relative) to which this connection is connecting to.voidsetLocalContainerId(String localContainerId) voidsetOfferedCapabilities(Symbol[] capabilities) voidsetProperties(Map<Symbol, Object> properties) voidsetReactor(Reactor reactor) Methods inherited from class org.apache.qpid.proton.engine.impl.EndpointImpl
attachments, close, free, getCondition, getLocalState, getRemoteCondition, getRemoteState, open, setConditionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.proton.engine.Endpoint
close, free, getCondition, getLocalState, getRemoteCondition, getRemoteState, open, setConditionMethods inherited from interface org.apache.qpid.proton.engine.Extendable
attachmentsMethods inherited from interface org.apache.qpid.proton.reactor.ReactorChild
free
-
Field Details
-
MAX_CHANNELS
public static final int MAX_CHANNELS- See Also:
-
-
Constructor Details
-
ConnectionImpl
public ConnectionImpl()Application code should useConnection.Factory.create()instead.
-
-
Method Details
-
session
Description copied from interface:ConnectionReturns a newly created session TODO does the Connection's channel-max property limit how many sessions can be created, or opened, or neither?- Specified by:
sessionin interfaceConnection- Specified by:
sessionin interfaceProtonJConnection
-
addSessionEndpoint
protected org.apache.qpid.proton.engine.impl.LinkNode<SessionImpl> addSessionEndpoint(SessionImpl endpoint) -
addLinkEndpoint
-
sessionHead
Description copied from interface:ConnectionReturns the head of the list of sessions in the specified states. Typically used to discover sessions whose remote state has acquired particular values, e.g. sessions that have been remotely opened or closed. TODO what ordering guarantees on the returned "linked list" are provided?- Specified by:
sessionHeadin interfaceConnection- See Also:
-
linkHead
Description copied from interface:ConnectionReturns the head of the list of links in the specified states. Typically used to discover links whose remote state has acquired particular values, e.g. links that have been remotely opened or closed.- Specified by:
linkHeadin interfaceConnection- See Also:
-
getConnectionImpl
- Specified by:
getConnectionImplin classEndpointImpl
-
getMaxChannels
public int getMaxChannels()- Specified by:
getMaxChannelsin interfaceProtonJConnection
-
getLocalContainerId
-
setLocalContainerId
- Specified by:
setLocalContainerIdin interfaceProtonJConnection
-
getWorkHead
Description copied from interface:ConnectionReturns the head of the delivery work list. The delivery work list consists of unsettled deliveries whose state has been changed by the other container and not yet locally processed.- Specified by:
getWorkHeadin interfaceConnection- See Also:
-
setContainer
- Specified by:
setContainerin interfaceConnection
-
getContainer
- Specified by:
getContainerin interfaceConnection
-
setHostname
Description copied from interface:ConnectionSet the name of the host (either fully qualified or relative) to which this connection is connecting to. This information may be used by the remote peer to determine the correct back-end service to connect the client to. This value will be sent in the Open performative. Note that it is illegal to set the hostname to a numeric IP address or include a port number.- Specified by:
setHostnamein interfaceConnection- Parameters:
hostname- the RFC1035 compliant host name.
-
getRemoteContainer
- Specified by:
getRemoteContainerin interfaceConnection
-
getRemoteHostname
- Specified by:
getRemoteHostnamein interfaceConnection
-
setOfferedCapabilities
- Specified by:
setOfferedCapabilitiesin interfaceConnection
-
setDesiredCapabilities
- Specified by:
setDesiredCapabilitiesin interfaceConnection
-
getRemoteOfferedCapabilities
- Specified by:
getRemoteOfferedCapabilitiesin interfaceConnection
-
getRemoteDesiredCapabilities
- Specified by:
getRemoteDesiredCapabilitiesin interfaceConnection
-
setProperties
- Specified by:
setPropertiesin interfaceConnection
-
getRemoteProperties
- Specified by:
getRemotePropertiesin interfaceConnection
-
getHostname
- Specified by:
getHostnamein interfaceConnection
-
getWorkSequence
-
getTransport
- Specified by:
getTransportin interfaceConnection
-
removeTransportWork
-
getContext
- Specified by:
getContextin interfaceConnection- Specified by:
getContextin interfaceEndpoint- Overrides:
getContextin classEndpointImpl- See Also:
-
setContext
Description copied from interface:EndpointSets an arbitrary an application owned object on the end-point. This object is not used by Proton.- Specified by:
setContextin interfaceConnection- Specified by:
setContextin interfaceEndpoint- Overrides:
setContextin classEndpointImpl
-
collect
- Specified by:
collectin interfaceConnection
-
getReactor
- Specified by:
getReactorin interfaceConnection
-
setReactor
-