public interface FutureCallback<V>
VortexFuture computation asynchronously.
Only one of either onSuccess(V) or onFailure(Throwable)
will be invoked.
Based on Google Guava's FutureCallback.| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable t)
Invoked with the error of the Tasklet computation on failure.
|
void |
onSuccess(V result)
Invoked with the result of the Tasklet computation on success.
|
Copyright © 2016 The Apache Software Foundation. All rights reserved.