public static class AbstractHttpSessionCollection.HybridController extends Object implements HttpSessionCollection.SessionDistributionController
| Constructor and Description |
|---|
HybridController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalClass(Class c)
Add a class which should never be distributed in the coherence
cache.
|
void |
init(HttpSessionCollection collection)
Initialize the session distribution controller, so that it has the
necessary context with which to make decisions regarding when to
distribute sessions and their attributes.
|
boolean |
isSessionAttributeDistributed(HttpSessionModel model,
String sName)
Determine if the specified attribute of the HttpSession associated
with the passed session model should be distributed.
|
boolean |
isSessionDistributed(HttpSessionModel model)
Determine if the HttpSession associated with the passed session
model should be distributed.
|
public void init(HttpSessionCollection collection)
init in interface HttpSessionCollection.SessionDistributionControllercollection - the HttpSessionCollection object for which the
distribution controller is workingpublic boolean isSessionDistributed(HttpSessionModel model)
isSessionDistributed in interface HttpSessionCollection.SessionDistributionControllermodel - the model for the HttpSession to evaluate for
distributionpublic boolean isSessionAttributeDistributed(HttpSessionModel model, String sName)
isSessionAttributeDistributed in interface HttpSessionCollection.SessionDistributionControllermodel - the model for the HttpSession being evaluatedsName - the name of the session attribute to evaluate for
distributionpublic void addLocalClass(Class c)
c - the class which is not be distrubted