Interface ResultCallback<T>

Type Parameters:
T - The result type.

public interface ResultCallback<T>
Callback that is called once an operation completed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(long ssl, Throwable cause)
    Called when the operation completes with an error.
    void
    onSuccess(long ssl, T result)
    Called when the operation completes with the given result.
  • Method Details

    • onSuccess

      void onSuccess(long ssl, T result)
      Called when the operation completes with the given result.
      Parameters:
      ssl - the SSL instance (SSL *)
      result - the result.
    • onError

      void onError(long ssl, Throwable cause)
      Called when the operation completes with an error.
      Parameters:
      ssl - the SSL instance (SSL *)
      cause - the error.