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.
- Author:
- rhl 2012.08.15
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvisitCacheEntry(long lOldCacheId, Binary binKey, Binary binValue) Apply the visitor to the specified cache entry (key-value pair).default booleanvisitContinuousAggregation(long lOldCacheId, int nFormat, Binary binDefinition) Apply the visitor to a continuous aggregation definition.default booleanvisitContinuousAggregationState(long lOldCacheId, int nFormat, int nPartition, long lOwnershipVersion, long lDataVersion, Binary binDefinition, Binary binState) Apply the visitor to a continuous aggregation partition-state checkpoint.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.booleanApply the visitor to the specified cache entry lock.booleanvisitTrigger(long lOldCacheId, Binary binTrigger) Apply the visitor to the specified trigger.
-
Method Details
-
visitCacheEntry
-
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
-
visitTrigger
Apply the visitor to the specified trigger.- Parameters:
lOldCacheId- the persisted cache-idbinTrigger- the trigger- Returns:
- false to terminate the iteration
-
visitContinuousAggregation
Apply the visitor to a continuous aggregation definition.- Parameters:
lOldCacheId- the persisted cache identifiernFormat- the definition format versionbinDefinition- the serialized definition- Returns:
- false to terminate the iteration
-
visitContinuousAggregationState
default boolean visitContinuousAggregationState(long lOldCacheId, int nFormat, int nPartition, long lOwnershipVersion, long lDataVersion, Binary binDefinition, Binary binState) Apply the visitor to a continuous aggregation partition-state checkpoint.- Parameters:
lOldCacheId- the persisted cache identifiernFormat- the state format versionnPartition- the partition identifierlOwnershipVersion- the ownership versionlDataVersion- the logical data versionbinDefinition- the definition fingerprintbinState- the serialized state envelope- Returns:
- false to terminate the iteration
-