com.github.thorbenkuck.network.stream.EventStream 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;
import java.util.List;
public interface EventStream {
Subscription subscribe(Subscriber subscriber);
List> getSubscriptions();
default Subscription connectTo(DataStream super T> eventStream) {
return subscribe(eventStream::push);
}
}