|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PojoCacheThreadContext
Represents the thread specific context for POJO Cache operations against a particular cache instance. This is
primarily used to change thread specific options. Once set, they remain for the entire lifetime of the thread.
Instances of this class can only be obtained by PojoCache.getThreadContext()
Method Summary | |
---|---|
void |
clear()
Clears all thread settings stored on this context. |
boolean |
isGravitationEnabled()
Returns whether or not this thread should trigger gravitation when a cache-miss occurs. |
void |
setGravitationEnabled(boolean gravitate)
Enables or disables gravitation on cache-miss |
Method Detail |
---|
boolean isGravitationEnabled()
void setGravitationEnabled(boolean gravitate)
gravitate
- true if gravitation should be triggered on cache-miss, false if gravitation should not be triggeredvoid clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |