Package org.red5.server.api.session
Interface ISession
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
Session
Represents the most basic type of "Session", loosely modeled after the HTTP Session used in J2EE applications.
- Author:
- The Red5 Project, Paul Gregoire ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionvoidend()Ends the session, no further modifications should be allowed.Returns the client id associated with this session.longReturns creation time in milliseconds.Returns the directory used to store session resources.Returns the session's identifier.booleanisActive()Returns the active state of the session.voidreset()Resets a specified set of internal parameters.voidsetClientId(String clientId) Sets the associated client id.voidsetDestinationDirectory(String destinationDirectory) Sets where session resources will be located if persisted to disk.
-
Method Details
-
getCreated
long getCreated()Returns creation time in milliseconds.- Returns:
- creation time
-
getSessionId
String getSessionId()Returns the session's identifier.- Returns:
- session id
-
reset
void reset()Resets a specified set of internal parameters. -
isActive
boolean isActive()Returns the active state of the session.- Returns:
- is active
-
end
void end()Ends the session, no further modifications should be allowed. -
setClientId
Sets the associated client id.- Parameters:
clientId- client id
-
getClientId
String getClientId()Returns the client id associated with this session.- Returns:
- client id
-
setDestinationDirectory
Sets where session resources will be located if persisted to disk.- Parameters:
destinationDirectory- destination directory
-
getDestinationDirectory
String getDestinationDirectory()Returns the directory used to store session resources.- Returns:
- destination directory
-