org.jdiameter.common.impl.app
Class AppSessionImpl

java.lang.Object
  extended by org.jdiameter.common.impl.app.AppSessionImpl
All Implemented Interfaces:
AppSession, BaseSession
Direct Known Subclasses:
AppAccSessionImpl, AppAuthSessionImpl, AppCCASessionImpl, AppGxSessionImpl, AppRfSessionImpl, AppRoSessionImpl, AppRxSessionImpl, CxDxSession, S6aSession, ShSession

public abstract class AppSessionImpl
extends java.lang.Object
implements AppSession

Abstract implementation for AppSession

Author:
Alexandre Mendonca , Bartosz Baranowski

Field Summary
protected  IAppSessionData appSessionData
           
protected  java.util.concurrent.ScheduledExecutorService scheduler
           
protected  Session session
           
protected  java.util.List<Session> sessions
           
protected  ISessionFactory sf
           
protected  ITimerFacility timerFacility
           
 
Constructor Summary
AppSessionImpl(ISessionFactory sf, IAppSessionData appSessionData)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getCreationTime()
           
 long getLastAccessedTime()
           
 ApplicationId getSessionAppId()
           
 java.lang.String getSessionId()
           
 java.util.List<Session> getSessions()
           
 int hashCode()
           
 boolean isAppSession()
           
 boolean isReplicable()
           
 boolean isValid()
           
abstract  void onTimer(java.lang.String timerName)
           
 void release()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jdiameter.api.app.AppSession
isStateless
 

Field Detail

appSessionData

protected IAppSessionData appSessionData

sessions

protected java.util.List<Session> sessions

session

protected Session session

sf

protected ISessionFactory sf

scheduler

protected java.util.concurrent.ScheduledExecutorService scheduler

timerFacility

protected ITimerFacility timerFacility
Constructor Detail

AppSessionImpl

public AppSessionImpl(ISessionFactory sf,
                      IAppSessionData appSessionData)
Method Detail

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface BaseSession

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface BaseSession

isValid

public boolean isValid()
Specified by:
isValid in interface BaseSession

getSessionAppId

public ApplicationId getSessionAppId()
Specified by:
getSessionAppId in interface AppSession

getSessions

public java.util.List<Session> getSessions()
Specified by:
getSessions in interface AppSession

release

public void release()
Specified by:
release in interface BaseSession

getSessionId

public java.lang.String getSessionId()
Specified by:
getSessionId in interface BaseSession

isAppSession

public boolean isAppSession()
Specified by:
isAppSession in interface BaseSession

isReplicable

public boolean isReplicable()
Specified by:
isReplicable in interface BaseSession

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

onTimer

public abstract void onTimer(java.lang.String timerName)


Copyright © 2014. All Rights Reserved.