Class CacheSelector<T extends CacheKey,U>

java.lang.Object
org.exoplatform.social.core.storage.cache.selector.CacheSelector<T,U>
All Implemented Interfaces:
org.exoplatform.services.cache.CachedObjectSelector<T,U>
Direct Known Subclasses:
ActivityAttachmentCacheSelector, ActivityMetadataCacheSelector, ActivityOwnerCacheSelector, ActivityStreamOwnerCacheSelector, IdentityCacheSelector, LastAccessedSpacesCacheSelector, RelationshipCacheSelector, SuggestionCacheSelector

public abstract class CacheSelector<T extends CacheKey,U> extends Object implements org.exoplatform.services.cache.CachedObjectSelector<T,U>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSelect(org.exoplatform.services.cache.ExoCache<? extends T,? extends U> exoCache, T key, org.exoplatform.services.cache.ObjectCacheInfo<? extends U> ocinfo)
     
    boolean
    select(T key, org.exoplatform.services.cache.ObjectCacheInfo<? extends U> ocinfo)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • select

      public boolean select(T key, org.exoplatform.services.cache.ObjectCacheInfo<? extends U> ocinfo)
      Specified by:
      select in interface org.exoplatform.services.cache.CachedObjectSelector<T extends CacheKey,U>
    • onSelect

      public void onSelect(org.exoplatform.services.cache.ExoCache<? extends T,? extends U> exoCache, T key, org.exoplatform.services.cache.ObjectCacheInfo<? extends U> ocinfo) throws Exception
      Specified by:
      onSelect in interface org.exoplatform.services.cache.CachedObjectSelector<T extends CacheKey,U>
      Throws:
      Exception