use of io.mantisrx.runtime.sink.Sink in project mantis by Netflix.
the class SourceSink method call.
@Override
public void call(Context context, PortRequest portRequest, Observable<String> observable) {
observable = observable.filter(t1 -> !t1.isEmpty());
ServerSentEventsSink<String> sink = new ServerSentEventsSink.Builder<String>().withEncoder(data -> data).withPredicate(new Predicate<>("description", new EventFilter(clientId))).withRequestPreprocessor(preProcessor).withRequestPostprocessor(postProcessor).build();
observable.subscribe();
sink.call(context, portRequest, observable);
}
Aggregations