EventObserver

public interface EventObserver<E extends EventMessage> implements EventConsumer<E>

Adapts gRPC streaming API to EventConsumer by passing the received Event to the accept method.

Parameters

<E>

the type of the event messages received by this observer

Functions

Link copied to clipboard
public void onNext(Event value)

Inherited functions

Link copied to clipboard
public abstract void accept(T p, U p1)
Link copied to clipboard
public BiConsumer<T, U> andThen(BiConsumer<? extends Object, ? extends Object> after)
Link copied to clipboard
public static EventConsumer<E> from<E extends EventMessage>(Consumer<E> consumer)
Converts the passed consumer of the event message to EventConsumer.