com.github.thorbenkuck.network.stream.Subscriber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easy-net Show documentation
Show all versions of easy-net Show documentation
An EventStream driven, simple to use Client/Server framework
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;
}
}