Class ClusterLoader

  • All Implemented Interfaces:
    Lifecycle, org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener, CacheLoader, LocalOnlyCacheLoader

    @Deprecated
    public class ClusterLoader
    extends Object
    implements CacheLoader, LocalOnlyCacheLoader, org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener
    Deprecated.
    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 Detail

      • ClusterLoader

        public ClusterLoader()
        Deprecated.
    • Method Detail

      • init

        public void init​(InitializationContext ctx)
        Deprecated.
        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
      • contains

        public boolean contains​(Object key)
        Deprecated.
        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.
        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.
      • stop

        public void stop()
        Deprecated.
        Description copied from interface: Lifecycle
        Invoked on component stop
        Specified by:
        stop in interface Lifecycle
      • isCacheReady

        protected boolean isCacheReady()
        Deprecated.
        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.