Package com.tangosol.persistence
Interface CachePersistenceHelper.Visitor
-
- All Known Implementing Classes:
AbstractPersistenceTools.StatsVisitor
- Enclosing class:
- CachePersistenceHelper
public static interface CachePersistenceHelper.Visitor
The 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 boolean
visitCacheEntry(long lOldCacheId, Binary binKey, Binary binValue)
Apply the visitor to the specified cache entry (key-value pair).boolean
visitIndex(long lOldCacheId, Binary binExtractor, Binary binComparator)
Apply the visitor to the specified cache index.boolean
visitListener(long lOldCacheId, Binary binKey, long lListenerId, boolean fLite)
Apply the visitor to the specified cache entry listener.boolean
visitLock(long lOldCacheId, Binary binKey, long lHolderId, long lHolderThreadId)
Apply the visitor to the specified cache entry lock.boolean
visitTrigger(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
-
-