public class SessionImpl extends EndpointImpl implements ProtonJSession
| Modifier and Type | Method and Description |
|---|---|
void |
close()
transition local state to CLOSED
|
void |
free()
free the endpoint and any associated resources
|
ConnectionImpl |
getConnection() |
protected ConnectionImpl |
getConnectionImpl() |
int |
getIncomingBytes() |
int |
getIncomingCapacity() |
int |
getOutgoingBytes() |
Session |
next(EnumSet<EndpointState> local,
EnumSet<EndpointState> remote) |
void |
open()
transition local state to ACTIVE
|
ReceiverImpl |
receiver(String name)
Returns a newly created receiver endpoint
|
SenderImpl |
sender(String name)
Returns a newly created sender endpoint
|
void |
setIncomingCapacity(int capacity) |
getCondition, getContext, getLocalState, getRemoteCondition, getRemoteState, setCondition, setContext, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCondition, getContext, getLocalState, getRemoteCondition, getRemoteState, setCondition, setContextpublic void open()
Endpointopen in interface Endpointopen in class EndpointImplpublic void close()
Endpointclose in interface Endpointclose in class EndpointImplpublic SenderImpl sender(String name)
Sessionsender in interface ProtonJSessionsender in interface Sessionpublic ReceiverImpl receiver(String name)
Sessionpublic Session next(EnumSet<EndpointState> local, EnumSet<EndpointState> remote)
protected ConnectionImpl getConnectionImpl()
getConnectionImpl in class EndpointImplpublic ConnectionImpl getConnection()
getConnection in interface Sessionpublic void free()
Endpointfree in interface Endpointfree in class EndpointImplpublic 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 SessionCopyright © 2013 The Apache Software Foundation. All rights reserved.