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.
Allows consumers of this API to specify error handling logic when a payload cannot be pushed out.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(Throwable error, P data) This method is called whenever pushing the givendatato a stream has failed.
-
Method Details
-
handleError
This method is called whenever pushing the givendatato a stream has failed.- Parameters:
error- the associated failuredata- the data we attempted to push
-