Class ClusterLoader

java.lang.Object
org.infinispan.persistence.cluster.ClusterLoader
All Implemented Interfaces:
Lifecycle, org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener, CacheLoader, LocalOnlyCacheLoader

@Deprecated(forRemoval=true) public class ClusterLoader extends Object implements CacheLoader, LocalOnlyCacheLoader, org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener
Deprecated, for removal: This API element is subject to removal in a future version.
since 11.0. To be removed in 14.0 ISPN-11864 with no direct replacement.
Cache loader that consults other members in the cluster for values. A remoteCallTimeout property is required, a long that specifies in milliseconds how long to wait for results before returning a null.
Author:
Mircea.Markus@jboss.com
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns true if the storage contains an entry associated with the given key.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Used to initialize a cache loader.
    protected boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    A test to check whether the cache is in its started state.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Fetches an entry from the storage.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Invoked on component start
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Invoked on component stop
    void
    storeChanged(org.infinispan.persistence.manager.PersistenceStatus status)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

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

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

    isAvailable
  • Constructor Details

    • ClusterLoader

      public ClusterLoader()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • init

      public void init(InitializationContext ctx)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CacheLoader
      Used to initialize a cache loader. Typically invoked by the PersistenceManager when setting up cache loaders.
      Specified by:
      init in interface CacheLoader
    • loadEntry

      public MarshallableEntry loadEntry(Object key) throws PersistenceException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CacheLoader
      Fetches an entry from the storage. If a MarshallableEntry needs to be created here, InitializationContext.getMarshallableEntryFactory() ()} and InitializationContext.getByteBufferFactory() should be used.
      Specified by:
      loadEntry in interface CacheLoader
      Returns:
      the entry, or null if the entry does not exist
      Throws:
      PersistenceException - in case of an error, e.g. communicating with the external storage
    • contains

      public boolean contains(Object key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CacheLoader
      Returns true if the storage contains an entry associated with the given key.
      Specified by:
      contains in interface CacheLoader
    • start

      public void start()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Lifecycle
      Invoked on component start
      Specified by:
      start in interface Lifecycle
    • storeChanged

      public void storeChanged(org.infinispan.persistence.manager.PersistenceStatus status)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • stop

      public void stop()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Lifecycle
      Invoked on component stop
      Specified by:
      stop in interface Lifecycle
    • isCacheReady

      protected boolean isCacheReady()
      Deprecated, for removal: This API element is subject to removal in a future version.
      A test to check whether the cache is in its started state. If not, calls should not be made as the channel may not have properly started, blocks due to state transfers may be in progress, etc.
      Returns:
      true if the cache is in its STARTED state.