public class SessionInvalidationTracker extends Object
find
them again.
Needed for cases where code that executes after ClusteredSessionValve
has returned asks the request for the session
again. With an invalidated session this results in a findSession
call to JBossCacheManager, which results in a
read of the distributed cache. With buddy replication, that will lead to a data gravitation attempt, which is at a minimum
expensive and with asynchronous replication may result pulling a stale version of the session back into the cache.
Constructor and Description |
---|
SessionInvalidationTracker() |
Modifier and Type | Method and Description |
---|---|
static void |
clearInvalidatedSession(String id,
org.apache.catalina.Manager manager) |
static boolean |
isSessionInvalidated(String id,
org.apache.catalina.Manager manager) |
static void |
resume() |
static void |
sessionInvalidated(String id,
org.apache.catalina.Manager manager) |
static void |
suspend() |
public static void suspend()
public static void resume()
public static void sessionInvalidated(String id, org.apache.catalina.Manager manager)
public static void clearInvalidatedSession(String id, org.apache.catalina.Manager manager)
public static boolean isSessionInvalidated(String id, org.apache.catalina.Manager manager)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.