reactivefeign.rx2.methodhandler.Rx2PublisherClientMethodHandler Maven / Gradle / Ivy
The newest version!
package reactivefeign.rx2.methodhandler;
import feign.MethodMetadata;
import feign.Target;
import io.reactivex.BackpressureStrategy;
import io.reactivex.Flowable;
import io.reactivex.Maybe;
import io.reactivex.Observable;
import io.reactivex.Single;
import org.reactivestreams.Publisher;
import reactivefeign.methodhandler.PublisherClientMethodHandler;
import reactivefeign.publisher.PublisherHttpClient;
import reactor.core.publisher.Mono;
import static reactor.adapter.rxjava.RxJava2Adapter.*;
public class Rx2PublisherClientMethodHandler extends PublisherClientMethodHandler {
private final BackpressureStrategy backpressureStrategy;
public Rx2PublisherClientMethodHandler(
Target target, MethodMetadata methodMetadata,
PublisherHttpClient publisherClient, BackpressureStrategy backpressureStrategy) {
super(target, methodMetadata, publisherClient);
this.backpressureStrategy = backpressureStrategy;
}
@Override
protected Publisher