public class ContextMapper
extends java.lang.Object
This class exists for a particular corner case described here. Consider a client-server environment with empty client regions *and* the need to fire HttpSessionListener destroy events. When a session expires, in this scenario, the Gemfire destroy events originate on the server and, with some Gemfire hackery, the destroyed object ends up as the event's callback argument. At the point that the CacheListener then gets the event, the re-constituted session object has no manager associated and so we need to re-attach a manager to it so that events can be fired correctly.
Modifier and Type | Method and Description |
---|---|
static void |
addContext(java.lang.String path,
DeltaSessionManager manager) |
static DeltaSessionManager |
getContext(java.lang.String path) |
static DeltaSessionManager |
removeContext(java.lang.String path) |
public static void addContext(java.lang.String path, DeltaSessionManager manager)
public static DeltaSessionManager getContext(java.lang.String path)
public static DeltaSessionManager removeContext(java.lang.String path)