public abstract class BaseSessionImpl extends Object implements BaseSession
BaseSession.| Modifier and Type | Field and Description |
|---|---|
protected IContainer |
container |
protected long |
creationTime |
protected boolean |
isValid |
protected long |
lastAccessedTime |
protected IMessageParser |
parser |
protected NetworkReqListener |
reqListener |
protected String |
sessionId |
| Constructor and Description |
|---|
BaseSessionImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendAppId(ApplicationId appId,
Message m)
Appends an *-Application-Id AVP to the message, if none is present already.
|
protected IEventListener |
createListenerWrapper(EventListener listener) |
protected void |
genericSend(Message message,
EventListener listener) |
protected void |
genericSend(Message aMessage,
EventListener listener,
long timeout,
TimeUnit timeUnit) |
protected long |
getAppId(ApplicationId appId) |
long |
getCreationTime() |
long |
getLastAccessedTime() |
String |
getSessionId() |
boolean |
isAppSession() |
boolean |
isReplicable() |
boolean |
isValid() |
Future<Message> |
send(Message message) |
Future<Message> |
send(Message message,
long timeOut,
TimeUnit timeUnit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreleaseprotected final long creationTime
protected long lastAccessedTime
protected boolean isValid
protected String sessionId
protected transient IContainer container
protected transient IMessageParser parser
protected NetworkReqListener reqListener
public long getCreationTime()
getCreationTime in interface BaseSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface BaseSessionpublic boolean isValid()
isValid in interface BaseSessionpublic String getSessionId()
getSessionId in interface BaseSessionpublic boolean isAppSession()
isAppSession in interface BaseSessionpublic boolean isReplicable()
isReplicable in interface BaseSessionprotected void genericSend(Message message, EventListener listener) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
protected void genericSend(Message aMessage, EventListener listener, long timeout, TimeUnit timeUnit) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
protected IEventListener createListenerWrapper(EventListener listener)
public Future<Message> send(Message message) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
public Future<Message> send(Message message, long timeOut, TimeUnit timeUnit) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
protected void appendAppId(ApplicationId appId, Message m)
appId - the application-id valuem - the message to append the *-Application-Idprotected long getAppId(ApplicationId appId)
Copyright © 2016. All Rights Reserved.