reactivefeign.rx3.methodhandler.Rx3PublisherClientMethodHandler Maven / Gradle / Ivy
package reactivefeign.rx3.methodhandler;
import feign.MethodMetadata;
import feign.Target;
import io.reactivex.rxjava3.core.*;
import org.reactivestreams.Publisher;
import reactivefeign.methodhandler.PublisherClientMethodHandler;
import reactivefeign.publisher.PublisherHttpClient;
import reactor.core.publisher.Mono;
import static reactor.adapter.rxjava.RxJava3Adapter.*;
public class Rx3PublisherClientMethodHandler extends PublisherClientMethodHandler {
private final BackpressureStrategy backpressureStrategy;
public Rx3PublisherClientMethodHandler(
Target target, MethodMetadata methodMetadata,
PublisherHttpClient publisherClient, BackpressureStrategy backpressureStrategy) {
super(target, methodMetadata, publisherClient);
this.backpressureStrategy = backpressureStrategy;
}
@Override
protected Publisher