
io.hstream.Observer Maven / Gradle / Ivy
package io.hstream;
/** An object used to receive results of a {@link Queryer}. */
public interface Observer {
/**
* Receives a value.
*
* @param value the value received
*/
void onNext(V value);
/**
* Receives a terminating error.
*
* @param t the error occurred
*/
void onError(Throwable t);
/** Receives a notification of successful completion. */
void onCompleted();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy