Class AbstractSerializingCacheStorage<T,​CAS>

  • All Implemented Interfaces:
    HttpCacheStorage
    Direct Known Subclasses:
    AbstractBinaryCacheStorage

    public abstract class AbstractSerializingCacheStorage<T,​CAS>
    extends java.lang.Object
    implements HttpCacheStorage
    Abstract cache backend for serialized objects capable of CAS (compare-and-swap) updates.
    Since:
    5.0
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.util.Map<java.lang.String,​T> bulkRestore​(java.util.Collection<java.lang.String> storageKeys)  
      protected abstract void delete​(java.lang.String storageKey)  
      protected abstract java.lang.String digestToStorageKey​(java.lang.String key)  
      java.util.Map<java.lang.String,​HttpCacheEntry> getEntries​(java.util.Collection<java.lang.String> keys)
      Retrieves multiple cache entries stored under the given keys.
      HttpCacheEntry getEntry​(java.lang.String key)
      Retrieves the cache entry stored under the given key or null if no entry exists under that key.
      protected abstract CAS getForUpdateCAS​(java.lang.String storageKey)  
      protected abstract T getStorageObject​(CAS cas)  
      void putEntry​(java.lang.String key, HttpCacheEntry entry)
      Store a given cache entry under the given key.
      void removeEntry​(java.lang.String key)
      Deletes/invalidates/removes any cache entries currently stored under the given key.
      protected abstract T restore​(java.lang.String storageKey)  
      protected abstract void store​(java.lang.String storageKey, T storageObject)  
      protected abstract boolean updateCAS​(java.lang.String storageKey, CAS cas, T storageObject)  
      void updateEntry​(java.lang.String key, HttpCacheCASOperation casOperation)
      Atomically applies the given callback to processChallenge an existing cache entry under a given key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait