|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
Maintains lists of sessions, links and deliveries in a state
that is interesting to the application.
These are exposed by returning the head of those lists via
sessionHead(EnumSet, EnumSet), linkHead(EnumSet, EnumSet)
getWorkHead() respectively.
| Method Summary | |
|---|---|
Object |
getContext()
|
String |
getRemoteContainer()
|
Symbol[] |
getRemoteDesiredCapabilities()
|
String |
getRemoteHostname()
|
Symbol[] |
getRemoteOfferedCapabilities()
|
Map<Symbol,Object> |
getRemoteProperties()
|
Delivery |
getWorkHead()
Returns the head of the delivery work list. |
Link |
linkHead(EnumSet<EndpointState> local,
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(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 |
setOfferedCapabilities(Symbol[] capabilities)
|
void |
setProperties(Map<Symbol,Object> properties)
|
| Methods inherited from interface org.apache.qpid.proton.engine.Endpoint |
|---|
close, free, getCondition, getLocalState, getRemoteCondition, getRemoteState, open, setCondition |
| Method Detail |
|---|
Session session()
Session sessionHead(EnumSet<EndpointState> local,
EnumSet<EndpointState> remote)
Session.next(EnumSet, EnumSet)
Link linkHead(EnumSet<EndpointState> local,
EnumSet<EndpointState> remote)
Link.next(EnumSet, EnumSet)Delivery getWorkHead()
Receiver.recv(byte[], int, int),
Delivery.settle(),
Delivery.getWorkNext()void setContainer(String container)
void setHostname(String hostname)
String getRemoteContainer()
String getRemoteHostname()
void setOfferedCapabilities(Symbol[] capabilities)
void setDesiredCapabilities(Symbol[] capabilities)
Symbol[] getRemoteOfferedCapabilities()
Symbol[] getRemoteDesiredCapabilities()
Map<Symbol,Object> getRemoteProperties()
void setProperties(Map<Symbol,Object> properties)
Object getContext()
getContext in interface EndpointEndpoint.setContext(Object)void setContext(Object context)
Endpoint
setContext in interface Endpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||