Class CacheStore.Default<K,​V>

java.lang.Object
one.microstream.cache.types.CacheStore.Default<K,​V>
All Implemented Interfaces:
javax.cache.integration.CacheLoader<K,​V>, javax.cache.integration.CacheWriter<K,​V>, CacheStore<K,​V>
Enclosing interface:
CacheStore<K,​V>

public static class CacheStore.Default<K,​V>
extends Object
implements CacheStore<K,​V>
  • Method Details

    • keys

      public Iterator<K> keys()
      Specified by:
      keys in interface CacheStore<K,​V>
    • load

      public V load​(K key) throws javax.cache.integration.CacheLoaderException
      Specified by:
      load in interface javax.cache.integration.CacheLoader<K,​V>
      Throws:
      javax.cache.integration.CacheLoaderException
    • loadAll

      public Map<K,​V> loadAll​(Iterable<? extends K> keys) throws javax.cache.integration.CacheLoaderException
      Specified by:
      loadAll in interface javax.cache.integration.CacheLoader<K,​V>
      Throws:
      javax.cache.integration.CacheLoaderException
    • write

      public void write​(javax.cache.Cache.Entry<? extends K,​? extends V> entry) throws javax.cache.integration.CacheWriterException
      Specified by:
      write in interface javax.cache.integration.CacheWriter<K,​V>
      Throws:
      javax.cache.integration.CacheWriterException
    • writeAll

      public void writeAll​(Collection<javax.cache.Cache.Entry<? extends K,​? extends V>> entries) throws javax.cache.integration.CacheWriterException
      Specified by:
      writeAll in interface javax.cache.integration.CacheWriter<K,​V>
      Throws:
      javax.cache.integration.CacheWriterException
    • delete

      public void delete​(Object key) throws javax.cache.integration.CacheWriterException
      Specified by:
      delete in interface javax.cache.integration.CacheWriter<K,​V>
      Throws:
      javax.cache.integration.CacheWriterException
    • deleteAll

      public void deleteAll​(Collection<?> keys) throws javax.cache.integration.CacheWriterException
      Specified by:
      deleteAll in interface javax.cache.integration.CacheWriter<K,​V>
      Throws:
      javax.cache.integration.CacheWriterException