public final class AsyncResult<V> extends Object implements Future<V>
Constructor and Description |
---|
AsyncResult(V result) |
public AsyncResult(V result)
public boolean cancel(boolean mayInterruptIfRunning)
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<V>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.