Interface RemoteStreamErrorHandler<P>

Type Parameters:
P - the payload type
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 RemoteStreamErrorHandler<P>
Allows consumers of this API to specify error handling logic when a payload cannot be pushed out.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleError(Throwable error, P data)
    This method is called whenever pushing the given data to a stream has failed.
  • Method Details

    • handleError

      void handleError(Throwable error, P data)
      This method is called whenever pushing the given data to a stream has failed.
      Parameters:
      error - the associated failure
      data - the data we attempted to push