org.jdiameter.common.impl.app.auth
Class AppAuthSessionImpl

java.lang.Object
  extended by org.jdiameter.common.impl.app.AppSessionImpl
      extended by org.jdiameter.common.impl.app.auth.AppAuthSessionImpl
All Implemented Interfaces:
java.io.Serializable, AppSession, StateMachine, BaseSession, NetworkReqListener
Direct Known Subclasses:
ClientAuthSessionImpl, ServerAuthSessionImpl

public abstract class AppAuthSessionImpl
extends AppSessionImpl
implements NetworkReqListener, StateMachine

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

Field Summary
protected  java.util.concurrent.locks.Lock sendAndStateLock
           
protected  java.util.List<StateChangeListener> stateListeners
           
 
Fields inherited from class org.jdiameter.common.impl.app.AppSessionImpl
appId, scheduler, session, sessionDataSource, sessionId, sf, timerFacility
 
Constructor Summary
AppAuthSessionImpl(SessionFactory sf, java.lang.String sessionId)
           
 
Method Summary
 void addStateChangeNotification(StateChangeListener listener)
           
 void release()
           
 void relink(IContainer stack)
           
 void removeStateChangeNotification(StateChangeListener listener)
           
 
Methods inherited from class org.jdiameter.common.impl.app.AppSessionImpl
getCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isReplicable, isValid, onTimer
 
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

stateListeners

protected transient java.util.List<StateChangeListener> stateListeners
Constructor Detail

AppAuthSessionImpl

public AppAuthSessionImpl(SessionFactory sf,
                          java.lang.String sessionId)
Method Detail

addStateChangeNotification

public void addStateChangeNotification(StateChangeListener listener)
Specified by:
addStateChangeNotification in interface StateMachine

removeStateChangeNotification

public void removeStateChangeNotification(StateChangeListener listener)
Specified by:
removeStateChangeNotification in interface StateMachine

release

public void release()
Specified by:
release in interface BaseSession
Overrides:
release in class AppSessionImpl

relink

public void relink(IContainer stack)
Overrides:
relink in class AppSessionImpl


Copyright © 2010. All Rights Reserved.