org.jdiameter.api.app
Interface AppSession

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ClientAccSession, ClientAuthSession, ClientCCASession, ClientShSession, ServerAccSession, ServerAuthSession, ServerCCASession, ServerShSession

public interface AppSession
extends java.io.Serializable

Basic class for application specific session (Sx, Rx, Gx)

Version:
1.5.1 Final

Method Summary
 long getCreationTime()
          Returns the time when this session was created (milliseconds) Start point of time January 1, 1970 GMT.
 long getLastAccessedTime()
          Returns the last time an event occurred on this session (milliseconds) Start point of time January 1, 1970 GMT.
 ApplicationId getSessionAppId()
          Return current value of applicationId of application session.
 java.util.List<Session> getSessions()
           
 boolean isStateless()
          Return true if session has stateless fsm
 boolean isValid()
          Return true if session has valid state (for example it retur true if session did not have timeout)
 void release()
          Release all attachment resources
 

Method Detail

getCreationTime

long getCreationTime()
Returns the time when this session was created (milliseconds) Start point of time January 1, 1970 GMT.

Returns:
long specifying when this session was created

getLastAccessedTime

long getLastAccessedTime()
Returns the last time an event occurred on this session (milliseconds) Start point of time January 1, 1970 GMT.

Returns:
long specifying when last time an event occurred on this session

isStateless

boolean isStateless()
Return true if session has stateless fsm

Returns:
true if session has stateless fsm

isValid

boolean isValid()
Return true if session has valid state (for example it retur true if session did not have timeout)

Returns:
true if session has valid state

getSessionAppId

ApplicationId getSessionAppId()
Return current value of applicationId of application session.

Returns:
applicationId of application session.

getSessions

java.util.List<Session> getSessions()
Returns:
Set of child delivery sessions

release

void release()
Release all attachment resources



Copyright © 2009. All Rights Reserved.