Package org.knowm.xchange.client
Class ResilienceUtils
java.lang.Object
org.knowm.xchange.client.ResilienceUtils
public final class ResilienceUtils extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResilienceUtils.CallableApi<T>
static class
ResilienceUtils.DecorateCallableApi<T>
-
Method Summary
Modifier and Type Method Description static <T> ResilienceUtils.DecorateCallableApi<T>
decorateApiCall(ExchangeSpecification.ResilienceSpecification resilienceSpecification, ResilienceUtils.CallableApi<T> callable)
static boolean
matchesHttpCode(io.vavr.control.Either<? extends Throwable,?> e, javax.ws.rs.core.Response.Status status)
Function which can be used check if a particular HTTP status code was returned
-
Method Details
-
decorateApiCall
public static <T> ResilienceUtils.DecorateCallableApi<T> decorateApiCall(ExchangeSpecification.ResilienceSpecification resilienceSpecification, ResilienceUtils.CallableApi<T> callable) -
matchesHttpCode
public static boolean matchesHttpCode(io.vavr.control.Either<? extends Throwable,?> e, javax.ws.rs.core.Response.Status status)Function which can be used check if a particular HTTP status code was returned
-