Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.util.concurrent;
 
An abstract Future that has "completed"

Author(s):
Manik Surtani
Version:
4.1
public abstract class AbstractInProcessFuture<V> implements Future<V> {
   @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 timeoutTimeUnit unitthrows InterruptedExceptionExecutionExceptionjava.util.concurrent.TimeoutException {
      return get();
   }
New to GrepCode? Check out our FAQ X