Session

Session

Note that session level flow control is handled internally by Proton.

Members

Functions

getConnection
Connection getConnection()
Undocumented in source.
getDesiredCapabilities
Symbol[] getDesiredCapabilities()

Gets the local session desired capabilities.

getIncomingBytes
int getIncomingBytes()
Undocumented in source.
getIncomingCapacity
int getIncomingCapacity()
Undocumented in source.
getOfferedCapabilities
Symbol[] getOfferedCapabilities()

Gets the local session offered capabilities.

getOutgoingBytes
int getOutgoingBytes()
Undocumented in source.
getOutgoingWindow
long getOutgoingWindow()
Undocumented in source.
getProperties
Map!(Symbol, Object) getProperties()

Gets the local session properties.

getRemoteDesiredCapabilities
Symbol[] getRemoteDesiredCapabilities()

Gets the remote session desired capabilities, as conveyed from the peer via the Begin frame when opening the session.

getRemoteOfferedCapabilities
Symbol[] getRemoteOfferedCapabilities()

Gets the remote session offered capabilities, as conveyed from the peer via the Begin frame when opening the session.

getRemoteProperties
Map!(Symbol, Object) getRemoteProperties()

Gets the remote session properties, as conveyed from the peer via the Begin frame when opening the session.

next
Session next(Set!EndpointState local, Set!EndpointState remote)
Undocumented in source.
receiver
Receiver receiver(string name)

Returns a newly created receiver endpoint

sender
Sender sender(string name)

Returns a newly created sender endpoint

setDesiredCapabilities
void setDesiredCapabilities(Symbol[] desiredCapabilities)

Sets the local session desired capabilities, to be conveyed to the peer via the Begin frame when opening the session.

setIncomingCapacity
void setIncomingCapacity(int bytes)
Undocumented in source.
setOfferedCapabilities
void setOfferedCapabilities(Symbol[] offeredCapabilities)

Sets the local session offered capabilities, to be conveyed to the peer via the Begin frame when opening the session.

setOutgoingWindow
void setOutgoingWindow(long outgoingWindowSize)

Sets the outgoing window size.

setProperties
void setProperties(Map!(Symbol, Object) properties)

Sets the local session properties, to be conveyed to the peer via the Begin frame when attaching the session to the session.

Inherited Members

From Endpoint

getLocalState
EndpointState getLocalState()

@return the local endpoint state

getRemoteState
EndpointState getRemoteState()

@return the remote endpoint state (as last communicated)

getCondition
ErrorCondition getCondition()

@return the local endpoint error, or null if there is none

setCondition
void setCondition(ErrorCondition condition)

Set the local error condition @param condition

getRemoteCondition
ErrorCondition getRemoteCondition()

@return the remote endpoint error, or null if there is none

free
void free()

free the endpoint and any associated resources

open
void open()

transition local state to ACTIVE

close
void close()

transition local state to CLOSED

setContext
void setContext(Object o)

Sets an arbitrary an application owned object on the end-point. This object is not used by Proton.

getContext
Object getContext()

@see #setContext(Object)

Meta