All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apptik.roxy.ReactorProcProxy Maven / Gradle / Ivy

There is a newer version: 0.2.0-alpha1
Show newest version
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()));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy