public interface Session extends Endpoint
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection() |
Symbol[] |
getDesiredCapabilities()
Gets the local session desired capabilities.
|
int |
getIncomingBytes() |
int |
getIncomingCapacity() |
Symbol[] |
getOfferedCapabilities()
Gets the local session offered capabilities.
|
int |
getOutgoingBytes() |
long |
getOutgoingWindow() |
java.util.Map<Symbol,java.lang.Object> |
getProperties()
Gets the local session properties.
|
Symbol[] |
getRemoteDesiredCapabilities()
Gets the remote session desired capabilities, as conveyed from the peer via the Begin frame
when opening the session.
|
Symbol[] |
getRemoteOfferedCapabilities()
Gets the remote session offered capabilities, as conveyed from the peer via the Begin frame
when opening the session.
|
java.util.Map<Symbol,java.lang.Object> |
getRemoteProperties()
Gets the remote session properties, as conveyed from the peer via the Begin frame
when opening the session.
|
Session |
next(java.util.EnumSet<EndpointState> local,
java.util.EnumSet<EndpointState> remote) |
Receiver |
receiver(java.lang.String name)
Returns a newly created receiver endpoint
|
Sender |
sender(java.lang.String name)
Returns a newly created sender endpoint
|
void |
setDesiredCapabilities(Symbol[] desiredCapabilities)
Sets the local session desired capabilities, to be conveyed to the peer via the Begin frame
when opening the session.
|
void |
setIncomingCapacity(int bytes) |
void |
setOfferedCapabilities(Symbol[] offeredCapabilities)
Sets the local session offered capabilities, to be conveyed to the peer via the Begin frame
when opening the session.
|
void |
setOutgoingWindow(long outgoingWindowSize)
Sets the outgoing window size.
|
void |
setProperties(java.util.Map<Symbol,java.lang.Object> properties)
Sets the local session properties, to be conveyed to the peer via the Begin frame when
attaching the session to the session.
|
close, free, getCondition, getContext, getLocalState, getRemoteCondition, getRemoteState, open, setCondition, setContext
attachments
Sender sender(java.lang.String name)
Receiver receiver(java.lang.String name)
Session next(java.util.EnumSet<EndpointState> local, java.util.EnumSet<EndpointState> remote)
Connection getConnection()
int getIncomingCapacity()
void setIncomingCapacity(int bytes)
int getIncomingBytes()
int getOutgoingBytes()
long getOutgoingWindow()
void setOutgoingWindow(long outgoingWindowSize)
outgoingWindowSize
- the outgoing window sizevoid setProperties(java.util.Map<Symbol,java.lang.Object> properties)
Endpoint.open()
method.properties
- the properties map to send, or null for none.java.util.Map<Symbol,java.lang.Object> getProperties()
setProperties(Map)
java.util.Map<Symbol,java.lang.Object> getRemoteProperties()
void setOfferedCapabilities(Symbol[] offeredCapabilities)
Endpoint.open()
method.offeredCapabilities
- the offered capabilities array to send, or null for none.Symbol[] getOfferedCapabilities()
setOfferedCapabilities(Symbol[])
Symbol[] getRemoteOfferedCapabilities()
void setDesiredCapabilities(Symbol[] desiredCapabilities)
Endpoint.open()
method.desiredCapabilities
- the desired capabilities array to send, or null for none.Symbol[] getDesiredCapabilities()
setDesiredCapabilities(Symbol[])
Symbol[] getRemoteDesiredCapabilities()