public interface CachingStrategy
Modifier and Type | Method and Description |
---|---|
default void |
clearCache()
Clears cache strategy data if supported by implementation.
|
java.lang.Object |
getObject()
Return cached object
|
default void |
init()
Method for strategy initialization
Invoked at first login, so security context is available
|
java.lang.Object |
loadObject()
Refresh cached object
|
java.util.concurrent.locks.ReadWriteLock |
lock()
Return lock used to provide caching thread safety
|
boolean |
needToReload()
Indicate whether cached object should be refreshed or not
|
default void init()
java.lang.Object getObject()
java.lang.Object loadObject()
java.util.concurrent.locks.ReadWriteLock lock()
boolean needToReload()
default void clearCache()