@FunctionalInterface public interface Subscriber<E> extends ISubscriber, java.util.function.Consumer<E>
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(E e) |
void |
onMessage(E e)
Called when there is an event.
|
onEndOfSubscriptionandThenvoid onMessage(E e) throws InvalidSubscriberException
e - eventInvalidSubscriberException - to throw when this subscriber is no longer valid.default void accept(E e)
accept in interface java.util.function.Consumer<E>Copyright © 2015. All rights reserved.