org.jdiameter.client.impl
Class BaseSessionImpl
java.lang.Object
org.jdiameter.client.impl.BaseSessionImpl
- All Implemented Interfaces:
- java.io.Serializable, BaseSession
- Direct Known Subclasses:
- RawSessionImpl, SessionImpl
public abstract class BaseSessionImpl
- extends java.lang.Object
- implements BaseSession
Implementation for BaseSession.
- Author:
- erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uid
protected static UIDGenerator uid
creationTime
protected final long creationTime
lastAccessedTime
protected long lastAccessedTime
isValid
protected boolean isValid
sessionId
protected java.lang.String sessionId
container
protected transient IContainer container
parser
protected transient IMessageParser parser
reqListener
protected NetworkReqListener reqListener
BaseSessionImpl
public BaseSessionImpl()
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTime in interface BaseSession
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTime in interface BaseSession
isValid
public boolean isValid()
- Specified by:
isValid in interface BaseSession
getSessionId
public java.lang.String getSessionId()
- Specified by:
getSessionId in interface BaseSession
isAppSession
public boolean isAppSession()
- Specified by:
isAppSession in interface BaseSession
isReplicable
public boolean isReplicable()
- Specified by:
isReplicable in interface BaseSession
generateSessionId
public java.lang.String generateSessionId()
genericSend
protected void genericSend(Message message,
EventListener listener)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
genericSend
protected void genericSend(Message aMessage,
EventListener listener,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
createListenerWrapper
protected IEventListener createListenerWrapper(EventListener listener)
send
public java.util.concurrent.Future<Message> send(Message message)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
send
public java.util.concurrent.Future<Message> send(Message message,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
appendAppId
protected void appendAppId(ApplicationId appId,
Message m)
getAppId
protected long getAppId(ApplicationId appId)
Copyright © 2010. All Rights Reserved.