public class SessionImpl extends EndpointImpl implements ProtonJSession
| Modifier and Type | Method and Description |
|---|---|
ConnectionImpl |
getConnection() |
protected ConnectionImpl |
getConnectionImpl() |
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) |
ReceiverImpl |
receiver(java.lang.String name)
Returns a newly created receiver endpoint
|
SenderImpl |
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 capacity) |
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 outgoingWindow)
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.
|
attachments, close, free, getCondition, getContext, getLocalState, getRemoteCondition, getRemoteState, open, setCondition, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, free, getCondition, getContext, getLocalState, getRemoteCondition, getRemoteState, open, setCondition, setContextattachmentspublic SenderImpl sender(java.lang.String name)
Sessionsender in interface ProtonJSessionsender in interface Sessionpublic ReceiverImpl receiver(java.lang.String name)
Sessionpublic Session next(java.util.EnumSet<EndpointState> local, java.util.EnumSet<EndpointState> remote)
protected ConnectionImpl getConnectionImpl()
getConnectionImpl in class EndpointImplpublic ConnectionImpl getConnection()
getConnection in interface Sessionpublic int getIncomingCapacity()
getIncomingCapacity in interface Sessionpublic void setIncomingCapacity(int capacity)
setIncomingCapacity in interface Sessionpublic int getIncomingBytes()
getIncomingBytes in interface Sessionpublic int getOutgoingBytes()
getOutgoingBytes in interface Sessionpublic void setOutgoingWindow(long outgoingWindow)
SessionsetOutgoingWindow in interface SessionoutgoingWindow - the outgoing window sizepublic long getOutgoingWindow()
getOutgoingWindow in interface Sessionpublic java.util.Map<Symbol,java.lang.Object> getProperties()
SessiongetProperties in interface SessionSession.setProperties(Map)public void setProperties(java.util.Map<Symbol,java.lang.Object> properties)
SessionEndpoint.open() method.setProperties in interface Sessionproperties - the properties map to send, or null for none.public java.util.Map<Symbol,java.lang.Object> getRemoteProperties()
SessiongetRemoteProperties in interface Sessionpublic Symbol[] getDesiredCapabilities()
SessiongetDesiredCapabilities in interface SessionSession.setDesiredCapabilities(Symbol[])public void setDesiredCapabilities(Symbol[] desiredCapabilities)
SessionEndpoint.open() method.setDesiredCapabilities in interface SessiondesiredCapabilities - the desired capabilities array to send, or null for none.public Symbol[] getRemoteDesiredCapabilities()
SessiongetRemoteDesiredCapabilities in interface Sessionpublic Symbol[] getOfferedCapabilities()
SessiongetOfferedCapabilities in interface SessionSession.setOfferedCapabilities(Symbol[])public void setOfferedCapabilities(Symbol[] offeredCapabilities)
SessionEndpoint.open() method.setOfferedCapabilities in interface SessionofferedCapabilities - the offered capabilities array to send, or null for none.public Symbol[] getRemoteOfferedCapabilities()
SessiongetRemoteOfferedCapabilities in interface Session