Package org.red5.server.session
Class SessionManager
java.lang.Object
org.red5.server.session.SessionManager
Manages sessions.
- Author:
- The Red5 Project, Paul Gregoire (mondain@gmail.com)
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final class
Quartz job to kill off old sessions -
Field Summary
Modifier and TypeFieldDescriptionprivate static String
private static final org.slf4j.Logger
private static Long
static final Random
private static ISchedulingService
private static ConcurrentMap<String,
ISession> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createHash
(String str) static ISession
static ISession
createSession
(String sessionId) static ISession
getSession
(String sessionId) static String
void
init()
static ISession
removeSession
(String sessionId) void
setDestinationDirectory
(String destinationDir) void
setMaxLifetime
(String maxLifetime) void
setSchedulingService
(ISchedulingService schedulingService)
-
Field Details
-
log
private static final org.slf4j.Logger log -
sessions
-
destinationDirectory
-
maxLifetime
-
schedulingService
-
rnd
-
-
Constructor Details
-
SessionManager
public SessionManager()
-
-
Method Details
-
init
public void init() -
getSessionId
-
createSession
-
createSession
-
getSession
-
removeSession
-
getDestinationDirectory
-
setDestinationDirectory
-
setMaxLifetime
-
setSchedulingService
-
createHash
-