Interface BatchResult.Callback<T,E>

Enclosing class:
BatchResult<T,E extends BaseServiceException>

public static interface BatchResult.Callback<T,E>
An interface for the batch callbacks.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    error(E exception)
    The method to be called when the batched operation fails.
    void
    success(T result)
    The method to be called when the batched operation succeeds.
  • Method Details

    • success

      void success(T result)
      The method to be called when the batched operation succeeds.
    • error

      void error(E exception)
      The method to be called when the batched operation fails.