org.jdiameter.client.impl
Class BaseSessionImpl

java.lang.Object
  extended by org.jdiameter.client.impl.BaseSessionImpl
All Implemented Interfaces:
java.io.Serializable, org.jdiameter.api.BaseSession, org.jdiameter.api.Wrapper
Direct Known Subclasses:
RawSessionImpl, SessionImpl

public abstract class BaseSessionImpl
extends java.lang.Object
implements org.jdiameter.api.BaseSession

See Also:
Serialized Form

Field Summary
protected  IContainer container
           
protected  long creationTime
           
protected  boolean isValid
           
protected  long lastAccessedTime
           
protected  IMessageParser parser
           
protected  org.jdiameter.api.NetworkReqListener reqListener
           
 
Constructor Summary
BaseSessionImpl()
           
 
Method Summary
protected  void appendAppId(org.jdiameter.api.ApplicationId appId, org.jdiameter.api.Message m)
           
protected  IEventListener createListenerWrapper(org.jdiameter.api.EventListener listener)
           
protected  void genericSend(org.jdiameter.api.Message message, org.jdiameter.api.EventListener listener)
           
protected  void genericSend(org.jdiameter.api.Message aMessage, org.jdiameter.api.EventListener listener, long timeout, java.util.concurrent.TimeUnit timeUnit)
           
protected  long getAppId(org.jdiameter.api.ApplicationId appId)
           
 long getCreationTime()
           
 long getLastAccessedTime()
           
 boolean isValid()
           
 java.util.concurrent.Future<org.jdiameter.api.Message> send(org.jdiameter.api.Message message)
           
 java.util.concurrent.Future<org.jdiameter.api.Message> send(org.jdiameter.api.Message message, long timeOut, java.util.concurrent.TimeUnit timeUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jdiameter.api.BaseSession
release
 
Methods inherited from interface org.jdiameter.api.Wrapper
isWrapperFor, unwrap
 

Field Detail

creationTime

protected final long creationTime

lastAccessedTime

protected long lastAccessedTime

isValid

protected boolean isValid

container

protected transient IContainer container

parser

protected transient IMessageParser parser

reqListener

protected org.jdiameter.api.NetworkReqListener reqListener
Constructor Detail

BaseSessionImpl

public BaseSessionImpl()
Method Detail

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface org.jdiameter.api.BaseSession

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface org.jdiameter.api.BaseSession

isValid

public boolean isValid()
Specified by:
isValid in interface org.jdiameter.api.BaseSession

genericSend

protected void genericSend(org.jdiameter.api.Message message,
                           org.jdiameter.api.EventListener listener)
                    throws org.jdiameter.api.InternalException,
                           org.jdiameter.api.IllegalDiameterStateException,
                           org.jdiameter.api.RouteException,
                           org.jdiameter.api.OverloadException
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

genericSend

protected void genericSend(org.jdiameter.api.Message aMessage,
                           org.jdiameter.api.EventListener listener,
                           long timeout,
                           java.util.concurrent.TimeUnit timeUnit)
                    throws org.jdiameter.api.InternalException,
                           org.jdiameter.api.IllegalDiameterStateException,
                           org.jdiameter.api.RouteException,
                           org.jdiameter.api.OverloadException
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

createListenerWrapper

protected IEventListener createListenerWrapper(org.jdiameter.api.EventListener listener)

send

public java.util.concurrent.Future<org.jdiameter.api.Message> send(org.jdiameter.api.Message message)
                                                            throws org.jdiameter.api.InternalException,
                                                                   org.jdiameter.api.IllegalDiameterStateException,
                                                                   org.jdiameter.api.RouteException,
                                                                   org.jdiameter.api.OverloadException
Specified by:
send in interface org.jdiameter.api.BaseSession
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

send

public java.util.concurrent.Future<org.jdiameter.api.Message> send(org.jdiameter.api.Message message,
                                                                   long timeOut,
                                                                   java.util.concurrent.TimeUnit timeUnit)
                                                            throws org.jdiameter.api.InternalException,
                                                                   org.jdiameter.api.IllegalDiameterStateException,
                                                                   org.jdiameter.api.RouteException,
                                                                   org.jdiameter.api.OverloadException
Specified by:
send in interface org.jdiameter.api.BaseSession
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

appendAppId

protected void appendAppId(org.jdiameter.api.ApplicationId appId,
                           org.jdiameter.api.Message m)

getAppId

protected long getAppId(org.jdiameter.api.ApplicationId appId)


Copyright © 2008. All Rights Reserved.