public interface ClientsManagerInterface
ClientManager
,
ClientInterface
,
Client
Modifier and Type | Method and Description |
---|---|
ClientInterface |
addClient()
Create and add a ClientInterface to the ClientManager
|
int |
countClient()
Count the number of clients in the ClientManager
|
ClientInterface |
getClient(java.lang.String sessionKey)
Return the ClientInterface corresponding to the sessionKey given in the parameters
|
void |
removeClient(ClientInterface client)
Remove a ClientInterface from the ClientManager
|
void |
setMaxClientInactivityDuration(int durationInHour)
Change the amount of time from which a client is considered as inactive
|
void |
setMaxTaskInactivityDuration(int durationInHour)
Change the amount of time from which a task is considered as too old
|
void |
setSessionCleanerTimer(int timeInMinutes)
Change the session cleaning time frequency
|
ClientInterface addClient()
ClientInterface getClient(java.lang.String sessionKey)
void removeClient(ClientInterface client)
the
- ClientInterface to removevoid setSessionCleanerTimer(int timeInMinutes)
the
- session cleaning time frequency in minutesvoid setMaxClientInactivityDuration(int durationInHour)
durationInMinutes
- the amount of time from which a client is considered as inactivevoid setMaxTaskInactivityDuration(int durationInHour)
durationInMinutes
- the amount of time from which a task is considered
as too oldint countClient()