public interface Connection extends Endpoint, ReactorChild
sessionHead(EnumSet, EnumSet)
, linkHead(EnumSet, EnumSet)
getWorkHead()
respectively.Modifier and Type | Interface and Description |
---|---|
static class |
Connection.Factory |
Modifier and Type | Method and Description |
---|---|
void |
collect(Collector collector) |
java.lang.String |
getContainer() |
java.lang.Object |
getContext() |
java.lang.String |
getHostname() |
Reactor |
getReactor() |
java.lang.String |
getRemoteContainer() |
Symbol[] |
getRemoteDesiredCapabilities() |
java.lang.String |
getRemoteHostname() |
Symbol[] |
getRemoteOfferedCapabilities() |
java.util.Map<Symbol,java.lang.Object> |
getRemoteProperties() |
Transport |
getTransport() |
Delivery |
getWorkHead()
Returns the head of the delivery work list.
|
Link |
linkHead(java.util.EnumSet<EndpointState> local,
java.util.EnumSet<EndpointState> remote)
Returns the head of the list of links in the specified states.
|
Session |
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 |
setOfferedCapabilities(Symbol[] capabilities) |
void |
setProperties(java.util.Map<Symbol,java.lang.Object> properties) |
close, free, getCondition, getLocalState, getRemoteCondition, getRemoteState, open, setCondition
attachments
free
Session session()
Session sessionHead(java.util.EnumSet<EndpointState> local, java.util.EnumSet<EndpointState> remote)
Session.next(EnumSet, EnumSet)
Link linkHead(java.util.EnumSet<EndpointState> local, java.util.EnumSet<EndpointState> remote)
Link.next(EnumSet, EnumSet)
Delivery getWorkHead()
void setContainer(java.lang.String container)
java.lang.String getContainer()
void setHostname(java.lang.String hostname)
hostname
- the RFC1035 compliant host name.java.lang.String getHostname()
java.lang.String getRemoteContainer()
java.lang.String getRemoteHostname()
void setOfferedCapabilities(Symbol[] capabilities)
void setDesiredCapabilities(Symbol[] capabilities)
Symbol[] getRemoteOfferedCapabilities()
Symbol[] getRemoteDesiredCapabilities()
java.util.Map<Symbol,java.lang.Object> getRemoteProperties()
void setProperties(java.util.Map<Symbol,java.lang.Object> properties)
java.lang.Object getContext()
getContext
in interface Endpoint
Endpoint.setContext(Object)
void setContext(java.lang.Object context)
Endpoint
setContext
in interface Endpoint
void collect(Collector collector)
Transport getTransport()
Reactor getReactor()