All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.client.base.BulkRestDataReceiver Maven / Gradle / Ivy

There is a newer version: 5.10.8
Show newest version
package org.yamcs.client.base;

import org.yamcs.client.ClientException;

public interface BulkRestDataReceiver {
    /**
     * called when receiving data.
     * 
     * 
     * @param data
     * @throws ClientException
     *             if exception is thrown the request will be aborted (connection to the server closed)
     */
    public void receiveData(byte[] data) throws ClientException;

    /**
     * Called when receiving an exception. Note that the CompleteableFuture returned from RestClient can also be used to
     * intercept the exception;
     * 
     * @param t
     */
    default void receiveException(Throwable t) {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy