public class SessionManager
extends java.lang.Object
implements pro.gravit.launcher.NeedGarbageCollection
| Modifier and Type | Field and Description |
|---|---|
static boolean |
GARBAGE_SERVER |
static long |
SESSION_TIMEOUT |
| Constructor and Description |
|---|
SessionManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addClient(Client client) |
void |
garbageCollection() |
Client |
getClient(long session) |
Client |
getOrNewClient(long session) |
java.util.Set<Client> |
getSessions() |
void |
loadSessions(java.util.Set<Client> set) |
void |
updateClient(long session) |
public static final long SESSION_TIMEOUT
public static final boolean GARBAGE_SERVER
public boolean addClient(Client client)
public void garbageCollection()
garbageCollection in interface pro.gravit.launcher.NeedGarbageCollectionpublic Client getClient(long session)
public Client getOrNewClient(long session)
public void updateClient(long session)
public java.util.Set<Client> getSessions()
public void loadSessions(java.util.Set<Client> set)