Interface ClientSynchronization<V>
-
- Type Parameters:
V
- The value that result when aClientFuture
succeeds
public interface ClientSynchronization<V>
Synchronization callback interface used to execute state updates or similar tasks in the thread context where the associated Future is managed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onPendingFailure(java.lang.Throwable cause)
Event point used to signal that this future will complete with a failure outcome.void
onPendingSuccess(V result)
Event point used to signal that this future will complete successfully.
-
-
-
Method Detail
-
onPendingSuccess
void onPendingSuccess(V result)
Event point used to signal that this future will complete successfully.- Parameters:
result
- The result that will be returned on completion of this future.
-
onPendingFailure
void onPendingFailure(java.lang.Throwable cause)
Event point used to signal that this future will complete with a failure outcome.- Parameters:
cause
- The error that triggered the failure of this future.
-
-