io.apptik.roxy.ReactorProcProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of roxy-reactor Show documentation
Show all versions of roxy-reactor Show documentation
Reactive Event Hub connecting Publishers to Subscribers
package io.apptik.roxy;
import org.reactivestreams.Processor;
import reactor.core.publisher.Flux;
import reactor.core.publisher.FluxProcessor;
/**
* Roxy implementation using Reactor-Core
*/
public class ReactorProcProxy extends RSProcProxy {
public ReactorProcProxy(FluxProcessor proc, TePolicy tePolicy) {
super(proc, tePolicy);
}
@Override
protected Flux hide(Processor processor) {
return ((Flux) processor).hide();
}
@Override
@SuppressWarnings("unchecked")
protected Flux filter(Processor processor, final Class filterClass) {
return ((Flux) processor).filter(o -> filterClass.isAssignableFrom(o.getClass()));
}
}