com.google.common.util.concurrent
Interface UninterruptibleFuture<V>

All Superinterfaces:
Future<V>

public interface UninterruptibleFuture<V>
extends Future<V>

A Future whose get calls cannot be interrupted. If a thread is interrupted during such a call, the call continues to block until the result is available or the timeout elapses, and only then re-interrupts the thread. Obtain an instance of this type using Futures.makeUninterruptible(Future).

Since:
2009.09.15 tentative
Author:
Kevin Bourrillion

Method Summary
 V get()
           
 V get(long timeout, TimeUnit unit)
           
 
Methods inherited from interface java.util.concurrent.Future
cancel, isCancelled, isDone
 

Method Detail

get

V get()
      throws ExecutionException
Specified by:
get in interface Future<V>
Throws:
ExecutionException

get

V get(long timeout,
      TimeUnit unit)
      throws ExecutionException,
             TimeoutException
Specified by:
get in interface Future<V>
Throws:
ExecutionException
TimeoutException