Package com.tangosol.persistence
Interface CachePersistenceHelper.Visitor
-
- All Known Implementing Classes:
AbstractPersistenceTools.StatsVisitor
- Enclosing class:
- CachePersistenceHelper
public static interface CachePersistenceHelper.VisitorThe Visitor interface allows the "iteration" of the persisted contents (and metadata) of a cache service in the style of the Visitor Pattern.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvisitCacheEntry(long lOldCacheId, Binary binKey, Binary binValue)Apply the visitor to the specified cache entry (key-value pair).booleanvisitIndex(long lOldCacheId, Binary binExtractor, Binary binComparator)Apply the visitor to the specified cache index.booleanvisitListener(long lOldCacheId, Binary binKey, long lListenerId, boolean fLite)Apply the visitor to the specified cache entry listener.booleanvisitLock(long lOldCacheId, Binary binKey, long lHolderId, long lHolderThreadId)Apply the visitor to the specified cache entry lock.booleanvisitTrigger(long lOldCacheId, Binary binTrigger)Apply the visitor to the specified trigger.
-
-
-
Method Detail
-
visitCacheEntry
boolean visitCacheEntry(long lOldCacheId, Binary binKey, Binary binValue)Apply the visitor to the specified cache entry (key-value pair).- Parameters:
lOldCacheId- the persisted cache-idbinKey- the cache keybinValue- the cache value- Returns:
- false to terminate the iteration
-
visitListener
boolean visitListener(long lOldCacheId, Binary binKey, long lListenerId, boolean fLite)Apply the visitor to the specified cache entry listener.- Parameters:
lOldCacheId- the persisted cache-idbinKey- the cache keylListenerId- the service-unique identifier of the listening memberfLite- true iff the listener should receive "lite" events- Returns:
- false to terminate the iteration
-
visitLock
boolean visitLock(long lOldCacheId, Binary binKey, long lHolderId, long lHolderThreadId)Apply the visitor to the specified cache entry lock.- Parameters:
lOldCacheId- the persisted cache-idbinKey- the cache keylHolderId- the service-unique identifier of the lock holderlHolderThreadId- the thread-id of the lock holder- Returns:
- false to terminate the iteration
-
visitIndex
boolean visitIndex(long lOldCacheId, Binary binExtractor, Binary binComparator)Apply the visitor to the specified cache index.- Parameters:
lOldCacheId- the persisted cache-idbinExtractor- the index extractorbinComparator- the index comparator- Returns:
- false to terminate the iteration
-
visitTrigger
boolean visitTrigger(long lOldCacheId, Binary binTrigger)Apply the visitor to the specified trigger.- Parameters:
lOldCacheId- the persisted cache-idbinTrigger- the trigger- Returns:
- false to terminate the iteration
-
-