Package com.googlecode.objectify.util
Class FutureNow<T>
java.lang.Object
com.googlecode.objectify.util.FutureNow<T>
- All Implemented Interfaces:
Future<T>
public class FutureNow<T> extends Object implements Future<T>
A simple Future impl that provides some already-obtained static data.
- Author:
- Jeff Schnitzer
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FutureNow
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone() -
get
- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-