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, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, free, getCondition, getContext, getLocalState, getRemoteCondition, getRemoteState, open, setCondition, setContext
attachments
public SenderImpl sender(java.lang.String name)
Session
sender
in interface ProtonJSession
sender
in interface Session
public ReceiverImpl receiver(java.lang.String name)
Session
public Session next(java.util.EnumSet<EndpointState> local, java.util.EnumSet<EndpointState> remote)
protected ConnectionImpl getConnectionImpl()
getConnectionImpl
in class EndpointImpl
public ConnectionImpl getConnection()
getConnection
in interface Session
public int getIncomingCapacity()
getIncomingCapacity
in interface Session
public void setIncomingCapacity(int capacity)
setIncomingCapacity
in interface Session
public int getIncomingBytes()
getIncomingBytes
in interface Session
public int getOutgoingBytes()
getOutgoingBytes
in interface Session
public void setOutgoingWindow(long outgoingWindow)
Session
setOutgoingWindow
in interface Session
outgoingWindow
- the outgoing window sizepublic long getOutgoingWindow()
getOutgoingWindow
in interface Session
public java.util.Map<Symbol,java.lang.Object> getProperties()
Session
getProperties
in interface Session
Session.setProperties(Map)
public void setProperties(java.util.Map<Symbol,java.lang.Object> properties)
Session
Endpoint.open()
method.setProperties
in interface Session
properties
- the properties map to send, or null for none.public java.util.Map<Symbol,java.lang.Object> getRemoteProperties()
Session
getRemoteProperties
in interface Session
public Symbol[] getDesiredCapabilities()
Session
getDesiredCapabilities
in interface Session
Session.setDesiredCapabilities(Symbol[])
public void setDesiredCapabilities(Symbol[] desiredCapabilities)
Session
Endpoint.open()
method.setDesiredCapabilities
in interface Session
desiredCapabilities
- the desired capabilities array to send, or null for none.public Symbol[] getRemoteDesiredCapabilities()
Session
getRemoteDesiredCapabilities
in interface Session
public Symbol[] getOfferedCapabilities()
Session
getOfferedCapabilities
in interface Session
Session.setOfferedCapabilities(Symbol[])
public void setOfferedCapabilities(Symbol[] offeredCapabilities)
Session
Endpoint.open()
method.setOfferedCapabilities
in interface Session
offeredCapabilities
- the offered capabilities array to send, or null for none.public Symbol[] getRemoteOfferedCapabilities()
Session
getRemoteOfferedCapabilities
in interface Session