public class SessionWatchdog
extends java.lang.Object
| Constructor and Description |
|---|
SessionWatchdog(Logger logger,
SessionWatchdogContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToSplitByTimeout(SessionProxyImpl sessionProxy)
Adds the given session proxy so that it will be automatically split the underlying session when the idle timeout
or the max session time is reached.
|
void |
closeOrEnqueueForClosing(SessionImpl session,
int closeGracePeriodInMillis)
Tries to close/end the given session or enqueues it for closing if closing was not possible
|
void |
dequeueFromClosing(SessionImpl session)
Removes the given session for auto-closing from this watchdog
|
void |
initialize() |
void |
removeFromSplitByTimeout(SessionProxyImpl sessionProxy)
Removes the given session proxy from automatically splitting it after idle or session max time expired.
|
void |
shutdown() |
public SessionWatchdog(Logger logger, SessionWatchdogContext context)
public void initialize()
public void shutdown()
public void closeOrEnqueueForClosing(SessionImpl session, int closeGracePeriodInMillis)
session - the session to be closed or enqueued for closing.closeGracePeriodInMillis - the grace period after which the session is to be closed for good.public void dequeueFromClosing(SessionImpl session)
session - the session to be removed.public void addToSplitByTimeout(SessionProxyImpl sessionProxy)
sessionProxy - the session proxy to be added.public void removeFromSplitByTimeout(SessionProxyImpl sessionProxy)
sessionProxy - the session proxy to be removed.