Interface ExternalStore<K,V>

All Superinterfaces:
CacheLoader<K,V>, CacheWriter<K,V>, Lifecycle
All Known Subinterfaces:
AdvancedLoadWriteStore<K,V>, FlagAffectedStore<K,V>, SegmentedAdvancedLoadWriteStore<K,V>
All Known Implementing Classes:
AbstractSegmentedAdvancedLoadWriteStore, ComposedSegmentedLoadWriteStore

@ThreadSafe @Deprecated(forRemoval=true) public interface ExternalStore<K,V> extends CacheLoader<K,V>, CacheWriter<K,V>
Deprecated, for removal: This API element is subject to removal in a future version.
since 11.0 replaced by NonBlockingStore
Basic interface for interacting with an external store in a read-write mode.
Since:
6.0
Author:
Mircea Markus
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Method to be used to destroy and clean up any resources associated with this store.
    default boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from interface org.infinispan.persistence.spi.CacheLoader

    contains, init, loadEntry

    Methods inherited from interface org.infinispan.persistence.spi.CacheWriter

    bulkUpdate, delete, deleteBatch, init, write

    Methods inherited from interface org.infinispan.commons.api.Lifecycle

    start, stop
  • Method Details

    • isAvailable

      default boolean isAvailable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isAvailable in interface CacheLoader<K,V>
      Specified by:
      isAvailable in interface CacheWriter<K,V>
      Returns:
      true if the writer can be connected to, otherwise false
    • destroy

      default void destroy()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method to be used to destroy and clean up any resources associated with this store. This is normally only useful for non shared stores.

      This method will ensure the store is stopped and properly cleans up all resources for it.