Package reactivefeign.publisher.retry
Class RetryPublisherHttpClient
- java.lang.Object
-
- reactivefeign.publisher.retry.RetryPublisherHttpClient
-
- All Implemented Interfaces:
PublisherHttpClient
- Direct Known Subclasses:
FluxRetryPublisherHttpClient,MonoRetryPublisherHttpClient
public abstract class RetryPublisherHttpClient extends java.lang.Object implements PublisherHttpClient
WrapsPublisherHttpClientwith retry logic provided by retryFunction- Author:
- Sergii Karpenko
-
-
Field Summary
Fields Modifier and Type Field Description protected PublisherHttpClientpublisherClientprotected java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>>retryFunction
-
Constructor Summary
Constructors Modifier Constructor Description protectedRetryPublisherHttpClient(PublisherHttpClient publisherClient, feign.MethodMetadata methodMetadata, java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> retryFunction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>>wrapWithLog(java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> retryFunction, java.lang.String feignMethodTag)protected java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>>wrapWithOutOfRetries(java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> retryFunction, ReactiveHttpRequest request)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface reactivefeign.publisher.PublisherHttpClient
executeRequest
-
-
-
-
Field Detail
-
publisherClient
protected final PublisherHttpClient publisherClient
-
retryFunction
protected final java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> retryFunction
-
-
Constructor Detail
-
RetryPublisherHttpClient
protected RetryPublisherHttpClient(PublisherHttpClient publisherClient, feign.MethodMetadata methodMetadata, java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> retryFunction)
-
-
Method Detail
-
wrapWithOutOfRetries
protected java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> wrapWithOutOfRetries(java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> retryFunction, ReactiveHttpRequest request)
-
wrapWithLog
protected static java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> wrapWithLog(java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> retryFunction, java.lang.String feignMethodTag)
-
-