Interface Callback<V>

All Known Implementing Classes:
ConvertingFutureCallback, FutureCallback, LicenseStore.ConsumeCallback
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Callback<V>
Generic interface for callbacks
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCompletion(Throwable error, V result)
    Invoked upon completion of the operation.
  • Method Details

    • onCompletion

      void onCompletion(Throwable error, V result)
      Invoked upon completion of the operation.
      Parameters:
      error - the error that caused the operation to fail, or null if no error occurred
      result - the return value, or null if the operation failed