Class ClusterLoader

  • All Implemented Interfaces:
    org.infinispan.commons.api.Lifecycle, CacheLoader, LocalOnlyCacheLoader

    public class ClusterLoader
    extends Object
    implements CacheLoader, LocalOnlyCacheLoader
    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()
    • Method Detail

      • contains

        public boolean contains​(Object key)
        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()
        Description copied from interface: org.infinispan.commons.api.Lifecycle
        Invoked on component start
        Specified by:
        start in interface org.infinispan.commons.api.Lifecycle
      • stop

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

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