| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
RecurrentFuture<T> |
whenComplete(ContextualResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called when an invocation is completed. |
RecurrentFuture<T> |
whenComplete(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called when an invocation is completed. |
RecurrentFuture<T> |
whenCompleteAsync(ContextualResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously when an invocation is completed. |
RecurrentFuture<T> |
whenCompleteAsync(ContextualResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously when an invocation is completed. |
RecurrentFuture<T> |
whenCompleteAsync(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously when an invocation is completed. |
RecurrentFuture<T> |
whenCompleteAsync(ResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously when an invocation is completed. |
RecurrentFuture<T> |
whenFailure(ContextualResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called when the retry policy is exceeded and the result is a failure. |
RecurrentFuture<T> |
whenFailure(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called when the retry policy is exceeded and the result is a failure. |
RecurrentFuture<T> |
whenFailureAsync(ContextualResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure. |
RecurrentFuture<T> |
whenFailureAsync(ContextualResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure. |
RecurrentFuture<T> |
whenFailureAsync(ResultListener<? super T,? extends Throwable> listener)
Registers the
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure. |
RecurrentFuture<T> |
whenFailureAsync(ResultListener<? super T,? extends Throwable> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure. |
RecurrentFuture<T> |
whenSuccess(ContextualSuccessListener<? super T> listener)
Registers the
listener to be called after a successful invocation. |
RecurrentFuture<T> |
whenSuccess(SuccessListener<? super T> listener)
Registers the
listener to be called after a successful invocation. |
RecurrentFuture<T> |
whenSuccessAsync(ContextualSuccessListener<? super T> listener)
Registers the
listener to be called asynchronously after a successful invocation. |
RecurrentFuture<T> |
whenSuccessAsync(ContextualSuccessListener<? super T> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously after a successful invocation. |
RecurrentFuture<T> |
whenSuccessAsync(SuccessListener<? super T> listener)
Registers the
listener to be called asynchronously after a successful invocation. |
RecurrentFuture<T> |
whenSuccessAsync(SuccessListener<? super T> listener,
ExecutorService executor)
Registers the
listener to be called asynchronously after a successful invocation. |
public boolean cancel(boolean mayInterruptIfRunning)
public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isCancelled()
isCancelled in interface Future<T>public RecurrentFuture<T> whenComplete(ContextualResultListener<? super T,? extends Throwable> listener)
listener to be called when an invocation is completed.public RecurrentFuture<T> whenComplete(ResultListener<? super T,? extends Throwable> listener)
listener to be called when an invocation is completed.public RecurrentFuture<T> whenCompleteAsync(ContextualResultListener<? super T,? extends Throwable> listener)
listener to be called asynchronously when an invocation is completed.public RecurrentFuture<T> whenCompleteAsync(ContextualResultListener<? super T,? extends Throwable> listener, ExecutorService executor)
listener to be called asynchronously when an invocation is completed.public RecurrentFuture<T> whenCompleteAsync(ResultListener<? super T,? extends Throwable> listener)
listener to be called asynchronously when an invocation is completed.public RecurrentFuture<T> whenCompleteAsync(ResultListener<? super T,? extends Throwable> listener, ExecutorService executor)
listener to be called asynchronously when an invocation is completed.public RecurrentFuture<T> whenFailure(ContextualResultListener<? super T,? extends Throwable> listener)
listener to be called when the retry policy is exceeded and the result is a failure.public RecurrentFuture<T> whenFailure(ResultListener<? super T,? extends Throwable> listener)
listener to be called when the retry policy is exceeded and the result is a failure.public RecurrentFuture<T> whenFailureAsync(ContextualResultListener<? super T,? extends Throwable> listener)
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.public RecurrentFuture<T> whenFailureAsync(ContextualResultListener<? super T,? extends Throwable> listener, ExecutorService executor)
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.public RecurrentFuture<T> whenFailureAsync(ResultListener<? super T,? extends Throwable> listener)
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.public RecurrentFuture<T> whenFailureAsync(ResultListener<? super T,? extends Throwable> listener, ExecutorService executor)
listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.public RecurrentFuture<T> whenSuccess(ContextualSuccessListener<? super T> listener)
listener to be called after a successful invocation.public RecurrentFuture<T> whenSuccess(SuccessListener<? super T> listener)
listener to be called after a successful invocation.public RecurrentFuture<T> whenSuccessAsync(ContextualSuccessListener<? super T> listener)
listener to be called asynchronously after a successful invocation.public RecurrentFuture<T> whenSuccessAsync(ContextualSuccessListener<? super T> listener, ExecutorService executor)
listener to be called asynchronously after a successful invocation.public RecurrentFuture<T> whenSuccessAsync(SuccessListener<? super T> listener)
listener to be called asynchronously after a successful invocation.public RecurrentFuture<T> whenSuccessAsync(SuccessListener<? super T> listener, ExecutorService executor)
listener to be called asynchronously after a successful invocation.Copyright © 2016. All Rights Reserved.