Package com.zfabrik.impl.gateway.home
Class GatewaySessionManager
java.lang.Object
com.zfabrik.impl.gateway.home.GatewaySessionManager
Mapping session ids to worker processes, so we can keep dispatching to the right nodes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.zfabrik.workers.home.IWorkerProcess
getSessionWorker(String sessionId)
Get the worker for a sessionId.int
getSize()
void
updateSession(String sessionId, Long expiration, com.zfabrik.workers.home.IWorkerProcess wp)
-
Constructor Details
-
GatewaySessionManager
public GatewaySessionManager()
-
-
Method Details
-
getSessionWorker
Get the worker for a sessionId. If there is none, or none running, returnnull
- Parameters:
sessionId
-- Returns:
-
getSize
public int getSize() -
updateSession
-