org.jdiameter.api
Interface BaseSession

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
AppSession, ClientAccSession, ClientAuthSession, ClientCCASession, ClientCxDxSession, ClientRfSession, ClientRoSession, ClientShSession, RawSession, ServerAccSession, ServerAuthSession, ServerCCASession, ServerCxDxSession, ServerRfSession, ServerRoSession, ServerShSession, Session

public interface BaseSession
extends java.io.Serializable

The session delivery objects are responsible for delivering all incoming Message to a specific session. It determines the Diameter Session object that the message belongs to by querying the message's session id AVP. The delivery object searches the local session database for a matching session. If no matching session is found, the delivery object will lookup a matching session factory object that has an application id matching the application id of the message. If there is a registered session factory, then the delivery object will ask the factory to create a new session and delivery the message to the newly created session. If non of these lookup's are successful, the session delivery object will silently discard the message. Wrapper interface allows adapt message to any driver vendor specific interface Serializable interface allows use this class in SLEE Event objects

Version:
1.5.1 Final
Author:
erick.svenson@yahoo.com, artem.litvinov@gmail.com, Alexandre Mendonca , Bartosz Baranowski

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.
 java.lang.String getSessionId()
           
 boolean isAppSession()
          Indicates if this is an App Session or a raw/base session
 boolean isReplicable()
          Indicates if the session is replicable
 boolean isValid()
          Return true if session is not released
 void release()
          Release all resources append to session
 

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

isValid

boolean isValid()
Return true if session is not released

Returns:
true if session is not released

release

void release()
Release all resources append to session


isAppSession

boolean isAppSession()
Indicates if this is an App Session or a raw/base session

Returns:

isReplicable

boolean isReplicable()
Indicates if the session is replicable

Returns:

getSessionId

java.lang.String getSessionId()
Returns:
session-id as String (Session-Id AVP)


Copyright © 2010. All Rights Reserved.