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

com.github.thorbenkuck.network.stream.Subscriber Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package com.github.thorbenkuck.network.stream;

@FunctionalInterface
public interface Subscriber {

    void accept(T t) throws Exception;

    default void onCancel() {
    }

    default void onSubscribe() {
    }

    default void onError(Throwable throwable) throws Throwable {
        throw throwable;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy