|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface HttpSessionCollection.SessionDistributionController
An optional interface to override the default distribution of session objects in the cluster, allowing the sessions to remain "local" to the originating server until a later point in the life of the session, that point determined by the implementation of this interface.
Further, once a session is distributed, the distribution of its attributes can be controlled in the same manner, specifying that some attributes remain local and others are distributed.
This interface exists primarily to assist in the conversion from non-distributed to distributed systems, particularly when concerns exist about the cost of distribution of all sessions and all attributes.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void init(HttpSessionCollection collection)
collection
- the HttpSessionCollection object for which the
distribution controller is workingboolean isSessionDistributed(HttpSessionModel model)
model
- the model for the HttpSession to evaluate for
distribution
boolean isSessionAttributeDistributed(HttpSessionModel model, String sName)
model
- the model for the HttpSession being evaluatedsName
- the name of the session attribute to evaluate for
distribution
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |