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.
|
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 supplierCopyright © 2016–2021. All rights reserved.