Interface ActiveOperation.CompletedCallback<T>

Type Parameters:
T - the result type
Enclosing interface:
ActiveOperation<T,A>

public static interface ActiveOperation.CompletedCallback<T>
A callback indicating when an operation is complete. This is not part of the ActiveOperation API itself, but rather is often provided by callers that trigger instantiation of an ActiveOperation in a process.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The operation was cancelled before being able to complete.
    void
    completed(T result)
    The operation completed successfully.
    void
    The operation failed.
  • Method Details

    • completed

      void completed(T result)
      The operation completed successfully.
      Parameters:
      result - the result
    • failed

      void failed(Exception e)
      The operation failed.
      Parameters:
      e - the failure
    • cancelled

      void cancelled()
      The operation was cancelled before being able to complete.