Interface ClientSynchronization<V>

Type Parameters:
V - The value that result when a ClientFuture 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 Type
    Method
    Description
    void
    Event point used to signal that this future will complete with a failure outcome.
    void
    Event point used to signal that this future will complete successfully.
  • Method Details

    • 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(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.