org.jdiameter.common.impl.app.acc
Class AppAccSessionImpl

java.lang.Object
  extended by org.jdiameter.common.impl.app.AppSessionImpl
      extended by org.jdiameter.common.impl.app.acc.AppAccSessionImpl
All Implemented Interfaces:
AppSession, StateMachine, BaseSession, NetworkReqListener
Direct Known Subclasses:
ClientAccSessionImpl, ServerAccSessionImpl

public abstract class AppAccSessionImpl
extends AppSessionImpl
implements NetworkReqListener, StateMachine

Author:
Alexandre Mendonca , Bartosz Baranowski

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
appSessionData, scheduler, session, sessions, sf, timerFacility
 
Constructor Summary
AppAccSessionImpl(ISessionFactory sf, IAppSessionData appSessionData)
           
 
Method Summary
 void addStateChangeNotification(StateChangeListener listener)
           
protected  AccountAnswer createAccountAnswer(Answer answer)
           
protected  AccountRequest createAccountRequest(Request request)
           
 void release()
           
 void removeStateChangeNotification(StateChangeListener listener)
           
 
Methods inherited from class org.jdiameter.common.impl.app.AppSessionImpl
equals, getCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, hashCode, isAppSession, isReplicable, isValid, onTimer
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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

AppAccSessionImpl

public AppAccSessionImpl(ISessionFactory sf,
                         IAppSessionData appSessionData)
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

createAccountRequest

protected AccountRequest createAccountRequest(Request request)

createAccountAnswer

protected AccountAnswer createAccountAnswer(Answer answer)

release

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


Copyright © 2014. All Rights Reserved.