Package org.yamcs.client.base
Interface BulkRestDataReceiver
-
public interface BulkRestDataReceiver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidreceiveData(byte[] data)called when receiving data.default voidreceiveException(Throwable t)Called when receiving an exception.
-
-
-
Method Detail
-
receiveData
void receiveData(byte[] data) throws ClientExceptioncalled when receiving data.- Parameters:
data-- Throws:
ClientException- if exception is thrown the request will be aborted (connection to the server closed)
-
receiveException
default void receiveException(Throwable t)
Called when receiving an exception. Note that the CompleteableFuture returned from RestClient can also be used to intercept the exception;- Parameters:
t-
-
-