com.github.thorbenkuck.network.stream.StrictEventStream 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
The newest version!
package com.github.thorbenkuck.network.stream;
import com.github.thorbenkuck.network.exceptions.EmptySubscriberListException;
import java.util.List;
public class StrictEventStream extends SimpleEventStream {
@Override
protected void dispatch(List> notifiableSubscriptions, T t) {
if (notifiableSubscriptions.isEmpty()) {
throw new EmptySubscriberListException("No Subscribers found for " + t);
}
super.dispatch(notifiableSubscriptions, t);
}
}