org.jdiameter.common.impl.app.sh
Class ShSession

java.lang.Object
  extended by org.jdiameter.common.impl.app.AppSessionImpl
      extended by org.jdiameter.common.impl.app.sh.ShSession
All Implemented Interfaces:
java.io.Serializable, org.jdiameter.api.app.AppSession, org.jdiameter.api.app.StateMachine, org.jdiameter.api.NetworkReqListener
Direct Known Subclasses:
ShClientSessionImpl, ShServerSessionImpl

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

See Also:
Serialized Form

Field Summary
protected  java.util.concurrent.ScheduledThreadPoolExecutor scheduler
           
protected  java.util.concurrent.locks.Lock sendAndStateLock
           
protected  java.util.List<org.jdiameter.api.app.StateChangeListener> stateListeners
           
 
Fields inherited from class org.jdiameter.common.impl.app.AppSessionImpl
appId, logger, session
 
Constructor Summary
ShSession()
           
 
Method Summary
 void addStateChangeNotification(org.jdiameter.api.app.StateChangeListener listener)
           
protected  org.jdiameter.api.acc.events.AccountAnswer createAccountAnswer(org.jdiameter.api.Answer answer)
           
protected  org.jdiameter.api.acc.events.AccountRequest createAccountRequest(org.jdiameter.api.Request request)
           
 void release()
           
 void removeStateChangeNotification(org.jdiameter.api.app.StateChangeListener listener)
           
 
Methods inherited from class org.jdiameter.common.impl.app.AppSessionImpl
getCreationTime, getLastAccessedTime, getSessionAppId, getSessions, isValid
 
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
 
Methods inherited from interface org.jdiameter.api.app.AppSession
isStateless
 

Field Detail

sendAndStateLock

protected java.util.concurrent.locks.Lock sendAndStateLock

scheduler

protected java.util.concurrent.ScheduledThreadPoolExecutor scheduler

stateListeners

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

ShSession

public ShSession()
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

createAccountRequest

protected org.jdiameter.api.acc.events.AccountRequest createAccountRequest(org.jdiameter.api.Request request)

createAccountAnswer

protected org.jdiameter.api.acc.events.AccountAnswer createAccountAnswer(org.jdiameter.api.Answer answer)

release

public void release()
Specified by:
release in interface org.jdiameter.api.app.AppSession
Overrides:
release in class AppSessionImpl


Copyright © 2008. All Rights Reserved.