public class SessionStatisticsCache extends Object
Modifier and Type | Method and Description |
---|---|
void |
addApplicationSession(long appSessionId,
long userIdval,
String appName)
Receive notification of the creation of an application (FDK)
session.
|
void |
addLibrarySession(LibrarySession session)
Receive notification of a connect of a LibrarySession.
|
static SessionStatisticsCache |
getInstance()
Get the singleton instance of SessionStatisticsCache.
|
SessionStatistics |
getSessionStatistics(LibrarySession session)
Get the session statistics for sessions active on this node.
|
void |
removeApplicationSession(long appSessionId,
long userIdval)
Receive notification of the deletion of an application (FDK)
session.
|
void |
removeLibrarySession(LibrarySession session)
Receive notification of the disconnect of a LibrarySession.
|
public static SessionStatisticsCache getInstance()
public void addApplicationSession(long appSessionId, long userIdval, String appName) throws IfsException
appSessionId
- the application session IDuserIdval
- the user IDappName
- the application nameIfsException
- if the operation failspublic void removeApplicationSession(long appSessionId, long userIdval) throws IfsException
appSessionId
- the application session IDuserIdval
- the user IDIfsException
- if the operation failspublic void addLibrarySession(LibrarySession session) throws IfsException
session
- the LibrarySession contextIfsException
- if the operation failspublic void removeLibrarySession(LibrarySession session) throws IfsException
session
- the LibrarySession contextIfsException
- if the operation failspublic SessionStatistics getSessionStatistics(LibrarySession session) throws IfsException
session
- the LibrarySession contextIfsException
- if the operation failsCopyright © 2023. All rights reserved.