org.red5.server.session
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()
ISession
getCreated
in interface ISession
public String getSessionId()
ISession
getSessionId
in interface ISession
public void reset()
ISession
public boolean isActive()
ISession
public void end()
ISession
public String getClientId()
ISession
getClientId
in interface ISession
public void setClientId(String clientId)
ISession
setClientId
in interface ISession
clientId
- client idpublic void setDestinationDirectory(String destinationDirectory)
ISession
setDestinationDirectory
in interface ISession
destinationDirectory
- destination directorypublic String getDestinationDirectory()
ISession
getDestinationDirectory
in interface ISession
Copyright © 2006-2012 The Red5 Project