public interface JaxRsCircuitBreaker
JaxRsCircuitBreaker is a specialized CircuitBreaker for JaxRs client
Modifier and Type | Method and Description |
---|---|
Function<javax.ws.rs.client.Invocation,javax.ws.rs.core.Response> |
decorateFunction(Function<javax.ws.rs.client.Invocation,javax.ws.rs.core.Response> function)
Returns a function which is decorated by the JaxRsCircuitBreaker.
|
Supplier<Future<javax.ws.rs.core.Response>> |
decorateFuture(Supplier<Future<javax.ws.rs.core.Response>> supplier)
Returns a supplier of type Future which is decorated by the JaxRsCircuitBreaker.
|
Supplier<javax.ws.rs.core.Response> |
decorateSupplier(Supplier<javax.ws.rs.core.Response> supplier)
Returns a supplier which is decorated by the JaxRsCircuitBreaker.
|
CircuitBreakerState |
getState()
Returns the state of this CircuitBreaker.
|
Supplier<javax.ws.rs.core.Response> decorateSupplier(Supplier<javax.ws.rs.core.Response> supplier)
Returns a supplier which is decorated by the JaxRsCircuitBreaker.
supplier
- the original supplierFunction<javax.ws.rs.client.Invocation,javax.ws.rs.core.Response> decorateFunction(Function<javax.ws.rs.client.Invocation,javax.ws.rs.core.Response> function)
Returns a function which is decorated by the JaxRsCircuitBreaker.
function
- the original functionSupplier<Future<javax.ws.rs.core.Response>> decorateFuture(Supplier<Future<javax.ws.rs.core.Response>> supplier)
Returns a supplier of type Future which is decorated by the JaxRsCircuitBreaker. The elapsed time
includes Future.get()
evaluation time even if the underlying call took less time to
return. Any delays in evaluating Future by caller will add towards total time.
supplier
- the original supplierCircuitBreakerState getState()
Returns the state of this CircuitBreaker.
Copyright © 2016–2022. All rights reserved.