Package org.jboss.cache

Examples of org.jboss.cache.CacheStatus


    * Blocks for the elements specified through {@link #expect(Class[])} invocations to be replicated in this cache.
    * if replication does not occur in the give timeout then an exception is being thrown.
    */
   public void waitForReplicationToOccur(long timeoutMillis)
   {
      CacheStatus state = ((CacheSPI) cache).getComponentRegistry().getState();
      if (!state.equals(CacheStatus.STARTED))
      {
         throw new IllegalStateException("Cannot invoke on an cache that is not started: current cache status is " + state);
      }
//      log("enter... ReplicationListener.waitForReplicationToOccur");
      waitForReplicationToOccur(timeoutMillis, TimeUnit.MILLISECONDS);
View Full Code Here

TOP

Related Classes of org.jboss.cache.CacheStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.