Class RxFunction
java.lang.Object
io.github.venkateshamurthy.exceptional.RxFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,T2, R> BiFunction<T, T2, R> bulkheadBiFunction(BiFunction<T, T2, R> biFunction, io.github.resilience4j.bulkhead.Bulkhead bulkhead) Bulkhead BiFunction wrapperstatic <T,T2, R> io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> bulkheadCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, io.github.resilience4j.bulkhead.Bulkhead bulkhead) Retry CheckedBiFunction wrapperstatic <T,R> io.github.resilience4j.core.functions.CheckedFunction<T, R> bulkheadCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, io.github.resilience4j.bulkhead.Bulkhead bulkhead) Bulkhead CheckedFunction wrapperstatic <T,R> Function<T, R> bulkheadFunction(Function<T, R> function, io.github.resilience4j.bulkhead.Bulkhead bulkhead) Bulkhead function wrapperstatic <T,T2, R> BiFunction<T, T2, R> circuitBreakBiFunction(BiFunction<T, T2, R> biFunction, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) CircuitBreaker BiFunction wrapperstatic <T,T2, R> io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> circuitBreakCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) Retry CheckedBiFunction wrapperstatic <T,R> io.github.resilience4j.core.functions.CheckedFunction<T, R> circuitBreakCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) Circuitbreaker CheckedFunction wrapperstatic <T,R> Function<T, R> circuitBreakFunction(Function<T, R> function, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) CircuitBreaker function wrapperstatic <X extends RuntimeException,T, T2, R>
BiFunction<T,T2, R> errorConsumedBiFunction(BiFunction<T, T2, R> biFunction, Class<X> ex, Consumer<X> op) An exception consuming BiFunction wrapperstatic <X extends RuntimeException,X2 extends RuntimeException, T, T2, R>
BiFunction<T,T2, R> errorConsumedBiFunction(BiFunction<T, T2, R> biFunction, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2) An exception consuming BiFunction wrapperstatic <X extends RuntimeException,X2 extends RuntimeException, X3 extends RuntimeException, T, T2, R>
BiFunction<T,T2, R> errorConsumedBiFunction(BiFunction<T, T2, R> biFunction, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2, Class<X3> ex3, Consumer<X3> op3) An exception consuming BiFunction wrapperstatic <X extends Exception,X2 extends Exception, X3 extends Exception, T, T2, R>
io.github.resilience4j.core.functions.CheckedBiFunction<T,T2, R> errorConsumedCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, Consumer<X> op) An exception consuming CheckedBiFunction wrapperstatic <X extends Exception,X2 extends Exception, T, T2, R>
io.github.resilience4j.core.functions.CheckedBiFunction<T,T2, R> errorConsumedCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2) An exception consuming CheckedFunction wrapperstatic <X extends Exception,X2 extends Exception, X3 extends Exception, T, T2, R>
io.github.resilience4j.core.functions.CheckedBiFunction<T,T2, R> errorConsumedCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2, Class<X3> ex3, Consumer<X3> op3) An exception consuming CheckedBiFunction wrapperstatic <X extends Exception,T, R>
io.github.resilience4j.core.functions.CheckedFunction<T,R> errorConsumedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> function, Class<X> ex, Consumer<X> op) An exception consuming CheckedFunction wrapperstatic <X extends Exception,X2 extends Exception, T, R>
io.github.resilience4j.core.functions.CheckedFunction<T,R> errorConsumedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> function, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2) An exception consuming CheckedFunction wrapperstatic <X extends Exception,X2 extends Exception, X3 extends Exception, T, R>
io.github.resilience4j.core.functions.CheckedFunction<T,R> errorConsumedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> function, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2, Class<X3> ex3, Consumer<X3> op3) An exception consuming CheckedFunction wrapperstatic <X extends RuntimeException,T, R>
Function<T,R> errorConsumedFunction(Function<T, R> function, Class<X> ex, Consumer<X> op) An exception consuming function wrapperstatic <X extends RuntimeException,X2 extends RuntimeException, T, R>
Function<T,R> errorConsumedFunction(Function<T, R> function, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2) An exception consuming function wrapperstatic <X extends RuntimeException,X2 extends RuntimeException, X3 extends RuntimeException, T, R>
Function<T,R> errorConsumedFunction(Function<T, R> function, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2, Class<X3> ex3, Consumer<X3> op3) An exception consuming function wrapperstatic <X extends RuntimeException,T, T2, R>
BiFunction<T,T2, R> errorMappedBiFunction(BiFunction<T, T2, R> biFunction, Class<X> ex, UnaryOperator<Exception> op) An exception mapped BiFunction wrapperstatic <X extends RuntimeException,X2 extends RuntimeException, T, T2, R>
BiFunction<T,T2, R> errorMappedBiFunction(BiFunction<T, T2, R> biFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2) An exception mapped BiFunction wrapperstatic <X extends RuntimeException,X2 extends RuntimeException, X3 extends RuntimeException, T, T2, R>
BiFunction<T,T2, R> errorMappedBiFunction(BiFunction<T, T2, R> biFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2, Class<X3> ex3, UnaryOperator<Exception> op3) An exception mapped BiFunction wrapperstatic <X extends Exception,T, T2, R>
io.github.resilience4j.core.functions.CheckedBiFunction<T,T2, R> errorMappedCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, UnaryOperator<Exception> op) An exception mapped CheckedBiFunction wrapperstatic <X extends Exception,X2 extends Exception, T, T2, R>
io.github.resilience4j.core.functions.CheckedBiFunction<T,T2, R> errorMappedCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2) An exception mapped CheckedBiFunction wrapperstatic <X extends Exception,X2 extends Exception, X3 extends Exception, T, T2, R>
io.github.resilience4j.core.functions.CheckedBiFunction<T,T2, R> errorMappedCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2, Class<X3> ex3, UnaryOperator<Exception> op3) An exception mapped CheckedBiFunction wrapperstatic <X extends Exception,T, R>
io.github.resilience4j.core.functions.CheckedFunction<T,R> errorMappedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, Class<X> ex, UnaryOperator<Exception> op) An exception mapped CheckedFunction wrapperstatic <X extends Exception,X2 extends Exception, T, R>
io.github.resilience4j.core.functions.CheckedFunction<T,R> errorMappedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2) An exception mapped CheckedFunction wrapperstatic <X extends Exception,X2 extends Exception, X3 extends Exception, T, R>
io.github.resilience4j.core.functions.CheckedFunction<T,R> errorMappedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2, Class<X3> ex3, UnaryOperator<Exception> op3) An exception mapped CheckedFunction wrapperstatic <X extends RuntimeException,T, R>
Function<T,R> errorMappedFunction(Function<T, R> function, Class<X> ex, UnaryOperator<Exception> op) An exception mapped Function wrapperstatic <X extends RuntimeException,X2 extends RuntimeException, T, R>
Function<T,R> errorMappedFunction(Function<T, R> function, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2) An exception mapped Function wrapperstatic <X extends RuntimeException,X2 extends RuntimeException, X3 extends RuntimeException, T, R>
Function<T,R> errorMappedFunction(Function<T, R> function, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2, Class<X3> ex3, UnaryOperator<Exception> op3) An exception mapped Function wrapperstatic <T,T2, R> BiFunction<T, T2, R> rateLimitBiFunction(BiFunction<T, T2, R> biFunction, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) Ratelimiter BiFunction wrapperstatic <T,T2, R> io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> rateLimitCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) Retry CheckedBiFunction wrapperstatic <T,R> io.github.resilience4j.core.functions.CheckedFunction<T, R> rateLimitCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) Ratelimiting CheckedFunction wrapperstatic <T,R> Function<T, R> rateLimitFunction(Function<T, R> function, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) RateLimiting function wrapperstatic <T,T2, R> BiFunction<T, T2, R> retryBiFunction(BiFunction<T, T2, R> biFunction, io.github.resilience4j.retry.Retry retry) Retry BiFunction wrapperstatic <T,T2, R> io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> retryCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, io.github.resilience4j.retry.Retry retry) Retry CheckedBiFunction wrapperstatic <T,R> io.github.resilience4j.core.functions.CheckedFunction<T, R> retryCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, io.github.resilience4j.retry.Retry retry) Retry CheckedFunction wrapperstatic <T,R> Function<T, R> retryFunction(Function<T, R> function, io.github.resilience4j.retry.Retry retry) Retry function wrapperstatic <T,T2, R> BiFunction<T, T2, R> toBiFunction(BiFunction<T, T2, R> function) Reflexive convenience method for chainingstatic <X> BinaryOperator<X>toBinaryOperator(BiFunction<X, X, X> biFunction) A converter forBiFunctionwhose arguments and output are of same type thus naturally toBinaryOperatorstatic <X> BinaryOperator<X>toBinaryOperator(BinaryOperator<X> binary) A reflexive function forBinaryOperatorstatic <T,T2, R> io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> toCheckedBiFunction(io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> function) Reflexive convenience method for chainingstatic <T,R> io.github.resilience4j.core.functions.CheckedFunction<T, R> toCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> function) Reflexive convenience method for chainingstatic <T,T2, T3, R>
CheckedTriFunction<T,T2, T3, R> toCheckedTriFunction(CheckedTriFunction<T, T2, T3, R> function) Reflexive convenience method for chainingstatic <T,R> Function<T, R> toFunction(Function<T, R> function) Reflexive convenience method for chainingstatic <X> UnaryOperator<X>toUnaryOperator(Function<X, X> function) A converter forFunctionwhose argument and output are of same type thus naturally toUnaryOperatorstatic <X> UnaryOperator<X>toUnaryOperator(UnaryOperator<X> unary) A reflexive function for aUnaryOperator
-
Constructor Details
-
RxFunction
public RxFunction()
-
-
Method Details
-
toBinaryOperator
A reflexive function forBinaryOperator- Type Parameters:
X- type of input and output- Parameters:
binary- usually a lambda expression representingBinaryOperator- Returns:
- the same as input
-
toBinaryOperator
A converter forBiFunctionwhose arguments and output are of same type thus naturally toBinaryOperator- Type Parameters:
X- type of input and output- Parameters:
biFunction- usually a lambda expression representingBiFunctionwhose arguments and output are of same type- Returns:
- the same as input after apply
-
toUnaryOperator
A reflexive function for aUnaryOperator- Type Parameters:
X- type of input and output- Parameters:
unary- usually a lambda expression representingUnaryOperator- Returns:
- the same as input
-
toUnaryOperator
A converter forFunctionwhose argument and output are of same type thus naturally toUnaryOperator- Type Parameters:
X- type of input and output- Parameters:
function- usually a lambda expression representingFunctionwhose argument and output are of same type- Returns:
- the same as input after apply
-
toFunction
Reflexive convenience method for chaining- Type Parameters:
T- type of inputR- type of result- Parameters:
function- to be seen as Function- Returns:
- function
-
toCheckedFunction
public static <T,R> io.github.resilience4j.core.functions.CheckedFunction<T,R> toCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> function) Reflexive convenience method for chaining- Type Parameters:
T- type of inputR- type of result- Parameters:
function- to be seen as CheckedFunction- Returns:
- function as is
-
toBiFunction
Reflexive convenience method for chaining- Type Parameters:
T- type of inputT2- 2nd typeR- type of result- Parameters:
function- to be seen as BiFunction- Returns:
- function as is
-
toCheckedBiFunction
public static <T,T2, io.github.resilience4j.core.functions.CheckedBiFunction<T,R> T2, toCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> function) Reflexive convenience method for chaining- Type Parameters:
T- type of inputT2- 2nd typeR- type of result- Parameters:
function- to be seen as CheckedBiFunction- Returns:
- function as is
-
toCheckedTriFunction
public static <T,T2, CheckedTriFunction<T,T3, R> T2, toCheckedTriFunctionT3, R> (CheckedTriFunction<T, T2, T3, R> function) Reflexive convenience method for chaining- Type Parameters:
T- type of inputT2- 2nd typeT3- . 3rd typeR- type of result- Parameters:
function- to be seen as CheckedTriFunction- Returns:
- function as is
-
retryFunction
public static <T,R> Function<T,R> retryFunction(Function<T, R> function, io.github.resilience4j.retry.Retry retry) Retry function wrapper- Type Parameters:
T- input typeR- output type- Parameters:
function- aFunction<T,to be retriedR> retry- aRetryinstance- Returns:
- wrapped function
-
rateLimitFunction
public static <T,R> Function<T,R> rateLimitFunction(Function<T, R> function, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) RateLimiting function wrapper- Type Parameters:
T- input typeR- output type- Parameters:
function- aFunction<T,to be retriedR> rateLimiter- aRateLimiterinstance- Returns:
- wrapped function
-
circuitBreakFunction
public static <T,R> Function<T,R> circuitBreakFunction(Function<T, R> function, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) CircuitBreaker function wrapper- Type Parameters:
T- input typeR- output type- Parameters:
function- aFunction<T,to be retriedR> circuitBreaker- aCircuitBreakerinstance- Returns:
- wrapped function
-
bulkheadFunction
public static <T,R> Function<T,R> bulkheadFunction(Function<T, R> function, io.github.resilience4j.bulkhead.Bulkhead bulkhead) Bulkhead function wrapper- Type Parameters:
T- input typeR- output type- Parameters:
function- aFunction<T,to be retriedR> bulkhead- aBulkheadinstance- Returns:
- wrapped function
-
retryCheckedFunction
public static <T,R> io.github.resilience4j.core.functions.CheckedFunction<T,R> retryCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, io.github.resilience4j.retry.Retry retry) Retry CheckedFunction wrapper- Type Parameters:
T- input typeR- output type- Parameters:
checkedFunction- aio.github.resilience4j.core.functions.CheckedFunction<T,to be retriedR> retry- aRetryinstance- Returns:
- wrapped checkedFunction
-
rateLimitCheckedFunction
public static <T,R> io.github.resilience4j.core.functions.CheckedFunction<T,R> rateLimitCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) Ratelimiting CheckedFunction wrapper- Type Parameters:
T- input typeR- output type- Parameters:
checkedFunction- aio.github.resilience4j.core.functions.CheckedFunction<T,to be retriedR> rateLimiter- aRateLimiterinstance- Returns:
- wrapped checkedFunction
-
circuitBreakCheckedFunction
public static <T,R> io.github.resilience4j.core.functions.CheckedFunction<T,R> circuitBreakCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) Circuitbreaker CheckedFunction wrapper- Type Parameters:
T- input typeR- output type- Parameters:
checkedFunction- aio.github.resilience4j.core.functions.CheckedFunction<T,to be retriedR> circuitBreaker- aCircuitBreakerinstance- Returns:
- wrapped checkedFunction
-
bulkheadCheckedFunction
public static <T,R> io.github.resilience4j.core.functions.CheckedFunction<T,R> bulkheadCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, io.github.resilience4j.bulkhead.Bulkhead bulkhead) Bulkhead CheckedFunction wrapper- Type Parameters:
T- input typeR- output type- Parameters:
checkedFunction- aio.github.resilience4j.core.functions.CheckedFunction<T,to be retriedR> bulkhead- aBulkheadinstance- Returns:
- wrapped checkedFunction
-
retryBiFunction
public static <T,T2, BiFunction<T,R> T2, retryBiFunctionR> (BiFunction<T, T2, R> biFunction, io.github.resilience4j.retry.Retry retry) Retry BiFunction wrapper- Type Parameters:
T- input typeT2- input typeR- output type- Parameters:
biFunction- aBiFunction<T,to be retriedT2, R> retry- aRetryinstance- Returns:
- wrapped biFunction
-
rateLimitBiFunction
public static <T,T2, BiFunction<T,R> T2, rateLimitBiFunctionR> (BiFunction<T, T2, R> biFunction, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) Ratelimiter BiFunction wrapper- Type Parameters:
T- input typeT2- input typeR- output type- Parameters:
biFunction- aBiFunction<T,to be retriedT2, R> rateLimiter- aRateLimiterinstance- Returns:
- wrapped biFunction
-
circuitBreakBiFunction
public static <T,T2, BiFunction<T,R> T2, circuitBreakBiFunctionR> (BiFunction<T, T2, R> biFunction, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) CircuitBreaker BiFunction wrapper- Type Parameters:
T- input typeT2- input typeR- output type- Parameters:
biFunction- aBiFunction<T,to be retriedT2, R> circuitBreaker- aCircuitBreakerinstance- Returns:
- wrapped biFunction
-
bulkheadBiFunction
public static <T,T2, BiFunction<T,R> T2, bulkheadBiFunctionR> (BiFunction<T, T2, R> biFunction, io.github.resilience4j.bulkhead.Bulkhead bulkhead) Bulkhead BiFunction wrapper- Type Parameters:
T- input typeT2- input typeR- output type- Parameters:
biFunction- aBiFunction<T,to be retriedT2, R> bulkhead- aBulkheadinstance- Returns:
- wrapped biFunction
-
retryCheckedBiFunction
public static <T,T2, io.github.resilience4j.core.functions.CheckedBiFunction<T,R> T2, retryCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, io.github.resilience4j.retry.Retry retry) Retry CheckedBiFunction wrapper- Type Parameters:
T- input typeT2- input typeR- output type- Parameters:
checkedBiFunction- aio.github.resilience4j.core.functions.CheckedBiFunction<T,to be retriedT2, R> retry- aRetryinstance- Returns:
- wrapped checkedBiFunction
-
rateLimitCheckedBiFunction
public static <T,T2, io.github.resilience4j.core.functions.CheckedBiFunction<T,R> T2, rateLimitCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) Retry CheckedBiFunction wrapper- Type Parameters:
T- input typeT2- input typeR- output type- Parameters:
checkedBiFunction- aio.github.resilience4j.core.functions.CheckedBiFunction<T,to be retriedT2, R> rateLimiter- aRateLimiterinstance- Returns:
- wrapped checkedBiFunction
-
circuitBreakCheckedBiFunction
public static <T,T2, io.github.resilience4j.core.functions.CheckedBiFunction<T,R> T2, circuitBreakCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) Retry CheckedBiFunction wrapper- Type Parameters:
T- input typeT2- input typeR- output type- Parameters:
checkedBiFunction- aio.github.resilience4j.core.functions.CheckedBiFunction<T,to be retriedT2, R> circuitBreaker- aCircuitBreakerinstance- Returns:
- wrapped checkedBiFunction
-
bulkheadCheckedBiFunction
public static <T,T2, io.github.resilience4j.core.functions.CheckedBiFunction<T,R> T2, bulkheadCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, io.github.resilience4j.bulkhead.Bulkhead bulkhead) Retry CheckedBiFunction wrapper- Type Parameters:
T- input typeT2- input typeR- output type- Parameters:
checkedBiFunction- aio.github.resilience4j.core.functions.CheckedBiFunction<T,to be retriedT2, R> bulkhead- aBulkheadinstance- Returns:
- wrapped checkedBiFunction
-
errorMappedCheckedFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedFunction<T,X3 extends Exception, T, R> R> errorMappedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2, Class<X3> ex3, UnaryOperator<Exception> op3) An exception mapped CheckedFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedX2- 2nd type of exception to be mappedX3- 3rd type of exception to be mappedT- type of inputR- type of the result- Parameters:
checkedFunction- (@link CheckedFunction} to be wrappedex- aClass<Exception>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exceptionex2- aClass<Exception>encountered by the callableop2- transformingUnaryOperatorto transforming the ex to another exceotionex3- aClass<Exception>encountered by the callableop3- transformingUnaryOperatorto transforming the ex to another exceotion- Returns:
- supplier wrapped
-
errorMappedCheckedFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedFunction<T,T, R> R> errorMappedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2) An exception mapped CheckedFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedX2- 2nd type of exception to be mappedT- type of inputR- type of the result- Parameters:
checkedFunction- (@link CheckedFunction} to be wrappedex- aClass<Exception>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exceptionex2- aClass<Exception>encountered by the callableop2- transformingUnaryOperatorto transforming the ex to another exceotion- Returns:
- supplier wrapped
-
errorMappedCheckedFunction
public static <X extends Exception,T, io.github.resilience4j.core.functions.CheckedFunction<T,R> R> errorMappedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> checkedFunction, Class<X> ex, UnaryOperator<Exception> op) An exception mapped CheckedFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedT- type of inputR- type of the result- Parameters:
checkedFunction- (@link CheckedFunction} to be wrappedex- aClass<Exception>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exception- Returns:
- supplier wrapped
-
errorMappedFunction
public static <X extends RuntimeException,X2 extends RuntimeException, Function<T,X3 extends RuntimeException, T, R> R> errorMappedFunction(Function<T, R> function, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2, Class<X3> ex3, UnaryOperator<Exception> op3) An exception mapped Function wrapper- Type Parameters:
X- Ist type of exception to be mappedX2- 2nd type of exception to be mappedX3- 3rd type of exception to be mappedT- type of inputR- type of the result- Parameters:
function- (@link Function} to be wrappedex- aClass<RuntimeException>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exceptionex2- aClass<RuntimeException>encountered by the callableop2- transformingUnaryOperatorto transforming the ex to another exceptionex3- aClass<RuntimeException>encountered by the callableop3- transformingUnaryOperatorto transforming the ex to another exception- Returns:
- function wrapped
-
errorMappedFunction
public static <X extends RuntimeException,X2 extends RuntimeException, Function<T,T, R> R> errorMappedFunction(Function<T, R> function, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2) An exception mapped Function wrapper- Type Parameters:
X- Ist type of exception to be mappedX2- 2nd type of exception to be mappedT- type of inputR- type of the result- Parameters:
function- (@link Function} to be wrappedex- aClass<RuntimeException>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exceptionex2- aClass<RuntimeException>encountered by the callableop2- transformingUnaryOperatorto transforming the ex to another exceotion- Returns:
- function wrapped
-
errorMappedFunction
public static <X extends RuntimeException,T, Function<T,R> R> errorMappedFunction(Function<T, R> function, Class<X> ex, UnaryOperator<Exception> op) An exception mapped Function wrapper- Type Parameters:
X- Ist type of exception to be mappedT- type of inputR- type of the result- Parameters:
function- (@link Function} to be wrappedex- aClass<RuntimeException>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exception- Returns:
- function wrapped
-
errorMappedCheckedBiFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedBiFunction<T,X3 extends Exception, T, T2, R> T2, errorMappedCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2, Class<X3> ex3, UnaryOperator<Exception> op3) An exception mapped CheckedBiFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedX2- 2nd type of exception to be mappedX3- 3rd type of exception to be mappedT- 1st type of inputT2- 2nd type of inputR- type of the result- Parameters:
checkedBiFunction- (@link CheckedBiFunction} to be wrappedex- aClass<Exception>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exceptionex2- aClass<Exception>encountered by the callableop2- transformingUnaryOperatorto transforming the ex to another exceptionex3- aClass<Exception>encountered by the callableop3- transformingUnaryOperatorto transforming the ex to another exception- Returns:
- checkedBiFunction wrapped
-
errorMappedCheckedBiFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedBiFunction<T,T, T2, R> T2, errorMappedCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2) An exception mapped CheckedBiFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedX2- 2nd type of exception to be mappedT- 1st type of inputT2- 2nd type of inputR- type of the result- Parameters:
checkedBiFunction- (@link CheckedBiFunction} to be wrappedex- aClass<Exception>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exceptionex2- aClass<Exception>encountered by the callableop2- transformingUnaryOperatorto transforming the ex to another exceotion- Returns:
- checkedBiFunction wrapped
-
errorMappedCheckedBiFunction
public static <X extends Exception,T, io.github.resilience4j.core.functions.CheckedBiFunction<T,T2, R> T2, errorMappedCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, UnaryOperator<Exception> op) An exception mapped CheckedBiFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedT- 1st type of inputT2- 2nd type of inputR- type of the result- Parameters:
checkedBiFunction- (@link CheckedBiFunction} to be wrappedex- aClass<Exception>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exception- Returns:
- checkedBiFunction wrapped
-
errorMappedBiFunction
public static <X extends RuntimeException,X2 extends RuntimeException, BiFunction<T,X3 extends RuntimeException, T, T2, R> T2, errorMappedBiFunctionR> (BiFunction<T, T2, R> biFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2, Class<X3> ex3, UnaryOperator<Exception> op3) An exception mapped BiFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedX2- 2nd type of exception to be mappedX3- 3rd type of exception to be mappedT- 1st type of inputT2- 2nd type of inputR- type of the result- Parameters:
biFunction- (@link BiFunction} to be wrappedex- aClass<RuntimeException>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exceptionex2- aClass<RuntimeException>encountered by the callableop2- transformingUnaryOperatorto transforming the ex to another exceotionex3- aClass<RuntimeException>encountered by the callableop3- transformingUnaryOperatorto transforming the ex to another exceotion- Returns:
- biFunction wrapped
-
errorMappedBiFunction
public static <X extends RuntimeException,X2 extends RuntimeException, BiFunction<T,T, T2, R> T2, errorMappedBiFunctionR> (BiFunction<T, T2, R> biFunction, Class<X> ex, UnaryOperator<Exception> op, Class<X2> ex2, UnaryOperator<Exception> op2) An exception mapped BiFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedX2- 2nd type of exception to be mappedT- 1st type of inputT2- 2nd type of inputR- type of the result- Parameters:
biFunction- (@link BiFunction} to be wrappedex- aClass<RuntimeException>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exceptionex2- aClass<RuntimeException>encountered by the callableop2- transformingUnaryOperatorto transforming the ex to another exceotion- Returns:
- biFunction wrapped
-
errorMappedBiFunction
public static <X extends RuntimeException,T, BiFunction<T,T2, R> T2, errorMappedBiFunctionR> (BiFunction<T, T2, R> biFunction, Class<X> ex, UnaryOperator<Exception> op) An exception mapped BiFunction wrapper- Type Parameters:
X- Ist type of exception to be mappedT- 1st type of inputT2- 2nd type of inputR- type of the result- Parameters:
biFunction- (@link BiFunction} to be wrappedex- aClass<RuntimeException>encountered by the callableop- transformingUnaryOperatorto transforming the ex to another exception- Returns:
- biFunction wrapped
-
errorConsumedFunction
public static <X extends RuntimeException,X2 extends RuntimeException, Function<T,X3 extends RuntimeException, T, R> R> errorConsumedFunction(Function<T, R> function, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2, Class<X3> ex3, Consumer<X3> op3) An exception consuming function wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedX3- 3rd type of exception to be consumedT- type of the inputR- type of the result- Parameters:
function- to be wrappedex- aClass<RuntimeException>encountered by the callableop- aConsumerto consume the ex encounteredex2- aClass<RuntimeException>encountered by the callableop2- aConsumerto consume the ex encounteredex3- aClass<RuntimeException>encountered by the callableop3- aConsumerto consume the ex encountered- Returns:
- function wrapped
-
errorConsumedFunction
public static <X extends RuntimeException,X2 extends RuntimeException, Function<T,T, R> R> errorConsumedFunction(Function<T, R> function, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2) An exception consuming function wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedT- type of the inputR- type of the result- Parameters:
function- to be wrappedex- aClass<RuntimeException>encountered by the callableop- aConsumerto consume the ex encounteredex2- aClass<RuntimeException>encountered by the callableop2- aConsumerto consume the ex encountered- Returns:
- function wrapped
-
errorConsumedFunction
public static <X extends RuntimeException,T, Function<T,R> R> errorConsumedFunction(Function<T, R> function, Class<X> ex, Consumer<X> op) An exception consuming function wrapper- Type Parameters:
X- Ist type of exception to be consumedT- type of the inputR- type of the result- Parameters:
function- to be wrappedex- aClass<RuntimeException>encountered by the callableop- aConsumerto consume the ex encountered- Returns:
- function wrapped
-
errorConsumedCheckedFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedFunction<T,X3 extends Exception, T, R> R> errorConsumedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> function, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2, Class<X3> ex3, Consumer<X3> op3) An exception consuming CheckedFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedX3- 3rd type of exception to be consumedT- type of the inputR- type of the result- Parameters:
function- to be wrappedex- aClass<Exception>encountered by the callableop- aConsumerto consume the ex encounteredex2- aClass<Exception>encountered by the callableop2- aConsumerto consume the ex encounteredex3- aClass<Exception>encountered by the callableop3- aConsumerto consume the ex encountered- Returns:
- function wrapped
-
errorConsumedCheckedFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedFunction<T,T, R> R> errorConsumedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> function, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2) An exception consuming CheckedFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedT- type of the inputR- type of the result- Parameters:
function- to be wrappedex- aClass<Exception>encountered by the callableop- aConsumerto consume the ex encounteredex2- aClass<Exception>encountered by the callableop2- aConsumerto consume the ex encountered- Returns:
- function wrapped
-
errorConsumedCheckedFunction
public static <X extends Exception,T, io.github.resilience4j.core.functions.CheckedFunction<T,R> R> errorConsumedCheckedFunction(io.github.resilience4j.core.functions.CheckedFunction<T, R> function, Class<X> ex, Consumer<X> op) An exception consuming CheckedFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedT- type of the inputR- type of the result- Parameters:
function- to be wrappedex- aClass<Exception>encountered by the callableop- aConsumerto consume the ex encountered- Returns:
- function wrapped
-
errorConsumedBiFunction
public static <X extends RuntimeException,X2 extends RuntimeException, BiFunction<T,X3 extends RuntimeException, T, T2, R> T2, errorConsumedBiFunctionR> (BiFunction<T, T2, R> biFunction, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2, Class<X3> ex3, Consumer<X3> op3) An exception consuming BiFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedX3- 3rd type of exception to be consumedT- type of the inputT2- 2nd type of the inputR- type of the result- Parameters:
biFunction- to be wrappedex- aClass<RuntimeException>encountered by the callableop- aConsumerto consume the ex encounteredex2- aClass<RuntimeException>encountered by the callableop2- aConsumerto consume the ex encounteredex3- aClass<RuntimeException>encountered by the callableop3- aConsumerto consume the ex encountered- Returns:
- biFunction wrapped
-
errorConsumedBiFunction
public static <X extends RuntimeException,X2 extends RuntimeException, BiFunction<T,T, T2, R> T2, errorConsumedBiFunctionR> (BiFunction<T, T2, R> biFunction, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2) An exception consuming BiFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedT- type of the inputT2- 2nd type of inputR- type of the result- Parameters:
biFunction- to be wrappedex- aClass<RuntimeException>encountered by the callableop- aConsumerto consume the ex encounteredex2- aClass<RuntimeException>encountered by the callableop2- aConsumerto consume the ex encountered- Returns:
- biFunction wrapped
-
errorConsumedBiFunction
public static <X extends RuntimeException,T, BiFunction<T,T2, R> T2, errorConsumedBiFunctionR> (BiFunction<T, T2, R> biFunction, Class<X> ex, Consumer<X> op) An exception consuming BiFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedT- type of the inputT2- type of the inputR- type of the result- Parameters:
biFunction- to be wrappedex- aClass<RuntimeException>encountered by the callableop- aConsumerto consume the ex encountered- Returns:
- biFunction wrapped
-
errorConsumedCheckedBiFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedBiFunction<T,X3 extends Exception, T, T2, R> T2, errorConsumedCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2, Class<X3> ex3, Consumer<X3> op3) An exception consuming CheckedBiFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedX3- 3rd type of exception to be consumedT- type of the inputT2- type of 2nd inputR- type of the result- Parameters:
checkedBiFunction- to be wrappedex- aClass<Exception>encountered by the callableop- aConsumerto consume the ex encounteredex2- aClass<Exception>encountered by the callableop2- aConsumerto consume the ex encounteredex3- aClass<Exception>encountered by the callableop3- aConsumerto consume the ex encountered- Returns:
- checkedBiFunction wrapped
-
errorConsumedCheckedBiFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedBiFunction<T,T, T2, R> T2, errorConsumedCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, Consumer<X> op, Class<X2> ex2, Consumer<X2> op2) An exception consuming CheckedFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedT- type of the inputT2- 2nd type of inputR- type of the result- Parameters:
checkedBiFunction- to be wrappedex- aClass<Exception>encountered by the callableop- aConsumerto consume the ex encounteredex2- aClass<Exception>encountered by the callableop2- aConsumerto consume the ex encountered- Returns:
- function wrapped
-
errorConsumedCheckedBiFunction
public static <X extends Exception,X2 extends Exception, io.github.resilience4j.core.functions.CheckedBiFunction<T,X3 extends Exception, T, T2, R> T2, errorConsumedCheckedBiFunctionR> (io.github.resilience4j.core.functions.CheckedBiFunction<T, T2, R> checkedBiFunction, Class<X> ex, Consumer<X> op) An exception consuming CheckedBiFunction wrapper- Type Parameters:
X- Ist type of exception to be consumedX2- 2nd type of exception to be consumedX3- 3rd type of exception to be consumedT- type of the inputT2- 2nd type of inputR- type of the result- Parameters:
checkedBiFunction- to be wrappedex- aClass<Exception>encountered by the callableop- aConsumerto consume the ex encountered- Returns:
- checkedBiFunction wrapped
-