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 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 Details

    • 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-id
      binKey - the cache key
      binValue - 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-id
      binKey - the cache key
      lListenerId - the service-unique identifier of the listening member
      fLite - 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-id
      binKey - the cache key
      lHolderId - the service-unique identifier of the lock holder
      lHolderThreadId - 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-id
      binExtractor - the index extractor
      binComparator - 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-id
      binTrigger - the trigger
      Returns:
      false to terminate the iteration