org.jdiameter.common.impl.app.cxdx
Class CxDxSession

java.lang.Object
  extended by org.jdiameter.common.impl.app.AppSessionImpl
      extended by org.jdiameter.common.impl.app.cxdx.CxDxSession
All Implemented Interfaces:
java.io.Serializable, org.jdiameter.api.app.AppSession, org.jdiameter.api.app.StateMachine, org.jdiameter.api.NetworkReqListener
Direct Known Subclasses:
CxDxClientSessionImpl, CxDxServerSessionImpl

public abstract class CxDxSession
extends AppSessionImpl
implements org.jdiameter.api.NetworkReqListener, org.jdiameter.api.app.StateMachine

Start time:15:18:44 2009-08-17
Project: diameter-parent

Author:
Bartosz Baranowski , Alexandre Mendonca
See Also:
Serialized Form

Field Summary
static int _TX_TIMEOUT
           
protected  ICxDxMessageFactory messageFactory
           
protected  java.util.concurrent.ScheduledExecutorService scheduler
           
protected  java.util.concurrent.locks.Lock sendAndStateLock
           
protected  org.jdiameter.api.SessionFactory sf
           
protected  CxDxSessionState state
           
protected  java.util.List<org.jdiameter.api.app.StateChangeListener> stateListeners
           
protected  java.util.concurrent.Future timeoutTaskFuture
           
 
Fields inherited from class org.jdiameter.common.impl.app.AppSessionImpl
appId, session
 
Constructor Summary
CxDxSession(org.jdiameter.api.SessionFactory sf)
           
 
Method Summary
 void addStateChangeNotification(org.jdiameter.api.app.StateChangeListener listener)
           
 boolean isStateless()
           
 void removeStateChangeNotification(org.jdiameter.api.app.StateChangeListener listener)
           
 
Methods inherited from class org.jdiameter.common.impl.app.AppSessionImpl
getCreationTime, getLastAccessedTime, getSessionAppId, getSessions, isValid, release
 
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.NetworkReqListener
processRequest
 
Methods inherited from interface org.jdiameter.api.app.StateMachine
getState, handleEvent
 

Field Detail

_TX_TIMEOUT

public static final int _TX_TIMEOUT
See Also:
Constant Field Values

sendAndStateLock

protected java.util.concurrent.locks.Lock sendAndStateLock

scheduler

protected java.util.concurrent.ScheduledExecutorService scheduler

stateListeners

protected java.util.List<org.jdiameter.api.app.StateChangeListener> stateListeners

state

protected CxDxSessionState state

timeoutTaskFuture

protected java.util.concurrent.Future timeoutTaskFuture

messageFactory

protected ICxDxMessageFactory messageFactory

sf

protected org.jdiameter.api.SessionFactory sf
Constructor Detail

CxDxSession

public CxDxSession(org.jdiameter.api.SessionFactory sf)
Method Detail

addStateChangeNotification

public void addStateChangeNotification(org.jdiameter.api.app.StateChangeListener listener)
Specified by:
addStateChangeNotification in interface org.jdiameter.api.app.StateMachine

removeStateChangeNotification

public void removeStateChangeNotification(org.jdiameter.api.app.StateChangeListener listener)
Specified by:
removeStateChangeNotification in interface org.jdiameter.api.app.StateMachine

isStateless

public boolean isStateless()
Specified by:
isStateless in interface org.jdiameter.api.app.AppSession


Copyright © 2010. All Rights Reserved.