public interface BulkRestDataReceiver
(byte data) throws ClientExceptioncalled when receiving data.
ClientException- if exception is thrown the request will be aborted (connection to the server closed)
receiveExceptiondefault void receiveException
(Throwable t)Called when receiving an exception. Note that the CompleteableFuture returned from RestClient can also be used to intercept the exception;