All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.util.concurrent.AbstractInProcessFuture Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.commons.util.concurrent;

import java.util.concurrent.*;

/**
 * An abstract Future that has "completed"
 *
 * @author Manik Surtani
 * @version 4.1
 */
public abstract class AbstractInProcessFuture implements Future {
   @Override
   public boolean cancel(boolean mayInterruptIfRunning) {
      return false;
   }

   @Override
   public boolean isCancelled() {
      return false;
   }

   @Override
   public boolean isDone() {
      return true;
   }

   @Override
   public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, java.util.concurrent.TimeoutException {
      return get();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy