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
Modifier and TypeMethodDescriptionboolean
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
Apply the visitor to the specified cache entry lock.boolean
visitTrigger
(long lOldCacheId, Binary binTrigger) Apply the visitor to the specified trigger.
-
Method Details
-
visitCacheEntry
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
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
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
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
Apply the visitor to the specified trigger.- Parameters:
lOldCacheId
- the persisted cache-idbinTrigger
- the trigger- Returns:
- false to terminate the iteration
-