public class Session extends Object implements ISession
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected String |
clientId |
protected long |
created |
protected String |
destinationDirectory |
protected String |
sessionId |
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Ends the session, no further modifications should be allowed.
|
boolean |
equals(Object obj) |
String |
getClientId()
Returns the client id associated with this session.
|
long |
getCreated()
Returns creation time in milliseconds.
|
String |
getDestinationDirectory()
Returns the directory used to store session resources.
|
String |
getSessionId()
Returns the session's identifier.
|
int |
hashCode() |
boolean |
isActive()
Returns the active state of the session.
|
void |
reset()
Resets a specified set of internal parameters.
|
void |
setClientId(String clientId)
Sets the associated client id.
|
void |
setDestinationDirectory(String destinationDirectory)
Sets where session resources will be located if persisted to disk.
|
protected long created
protected boolean active
protected String sessionId
protected String destinationDirectory
protected String clientId
public Session()
public Session(String sessionId)
public long getCreated()
ISessiongetCreated in interface ISessionpublic String getSessionId()
ISessiongetSessionId in interface ISessionpublic void reset()
ISessionpublic boolean isActive()
ISessionpublic void end()
ISessionpublic String getClientId()
ISessiongetClientId in interface ISessionpublic void setClientId(String clientId)
ISessionsetClientId in interface ISessionclientId - client idpublic void setDestinationDirectory(String destinationDirectory)
ISessionsetDestinationDirectory in interface ISessiondestinationDirectory - destination directorypublic String getDestinationDirectory()
ISessiongetDestinationDirectory in interface ISessionCopyright © 2006-2012 The Red5 Project