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

All Superinterfaces:
java.util.concurrent.Future<V>

@Beta
public interface UninterruptibleFuture<V>
extends java.util.concurrent.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:
1
Author:
Kevin Bourrillion

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

Method Detail

get

V get()
      throws java.util.concurrent.ExecutionException
Specified by:
get in interface java.util.concurrent.Future<V>
Throws:
java.util.concurrent.ExecutionException

get

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


Copyright © 2010 Google. All Rights Reserved.