Class ClusterLoader

  • All Implemented Interfaces:
    Lifecycle, CacheLoader, LocalOnlyCacheLoader

    public class ClusterLoader
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      ClusterLoader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.Object key)
      Returns true if the storage contains an entry associated with the given key.
      void init​(InitializationContext ctx)
      Used to initialize a cache loader.
      protected boolean isCacheReady()
      A test to check whether the cache is in its started state.
      MarshalledEntry load​(java.lang.Object key)
      Fetches an entry from the storage.
      void start()
      Invoked on component start
      void stop()
      Invoked on component stop
      • Methods inherited from class java.lang.Object

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