Package org.jboss.cache.lock

Examples of org.jboss.cache.lock.TimeoutException


   private static class SecretiveStateCacheMessageListener extends ChannelMessageListener
   {
      @Override
      public void setState(byte[] new_state)
      {
         setStateException = new TimeoutException("Planned Timeout");
      }
View Full Code Here


      }

      @Override
      public void setState(InputStream istream)
      {
         setStateException = new TimeoutException("Planned Timeout");
      }
View Full Code Here

      }

      @Override
      public void setState(String state_id, byte[] state)
      {
         setStateException = new TimeoutException("Planned Timeout");
      }
View Full Code Here

      }

      @Override
      public void setState(String state_id, InputStream istream)
      {
         setStateException = new TimeoutException("Planned Timeout");
      }
View Full Code Here

               {
                  ex = new SuspectException("Suspected member: " + rsp.getSender());
               }
               else
               {
                  ex = new TimeoutException("Replication timeout for " + rsp.getSender());
               }
               retval.add(new ReplicationException("rsp=" + rsp, ex));
               success = false;
            }
            else
View Full Code Here

    * @param id
    * @return
    */
   Object removeLocal(Fqn<?> fqn, String id)
   {
      TimeoutException ex = null;
      for (int i = 0; i < RETRY; i++)
      {
         try
         {
            this.getOptionOverrides().setCacheModeLocal(true);
View Full Code Here

    *
    * @param fqn
    */
   void removeLocal(Fqn<?> fqn)
   {
      TimeoutException ex = null;
      for (int i = 0; i < RETRY; i++)
      {
         try
         {
            this.getOptionOverrides().setCacheModeLocal(true);
View Full Code Here

      throw new RuntimeException(RETRY_FAIL_MSG, ex);
   }
  
   void evictSubtree(Fqn<?> fqn)
   {     
      TimeoutException ex = null;
      for (int i = 0; i < RETRY; i++)
      {
         try
         {
            this.getOptionOverrides();
View Full Code Here

   private byte[] acquireState(Fqn fqn) throws CacheException
   {
      // Call _getState with progressively longer timeouts until we
      // get state or it doesn't throw a TimeoutException
      long[] timeouts = {400, 800, 1600, configuration.getStateRetrievalTimeout()};
      TimeoutException timeoutException = null;

      for (int i = 0; i < timeouts.length; i++)
      {
         boolean force = (i == timeouts.length - 1);
View Full Code Here

      public void waitForFlushCompletion(long timeout) throws InterruptedException
      {
         if (channel.flushSupported() && !flushBlockGate.await(timeout, TimeUnit.MILLISECONDS))
         {
            throw new TimeoutException("State retrieval timed out waiting for flush to unblock. (timeout = " + CachePrinter.prettyPrint(timeout) + ")");
         }
      }
View Full Code Here

TOP

Related Classes of org.jboss.cache.lock.TimeoutException

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.