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
Modifier and TypeMethodDescriptionvoid
onPendingFailure
(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 Details
-
onPendingSuccess
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
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.
-