java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Client<T_I,T_O>>
com.linecorp.armeria.client.DecoratingClient<I,O,I,O>
com.linecorp.armeria.client.SimpleDecoratingClient<I,O>
com.linecorp.armeria.client.circuitbreaker.AbstractCircuitBreakerClient<I,O>
- All Implemented Interfaces:
Client<I,
,O> Unwrappable
- Direct Known Subclasses:
CircuitBreakerClient
,CircuitBreakerRpcClient
public abstract class AbstractCircuitBreakerClient<I extends Request,O extends Response>
extends SimpleDecoratingClient<I,O>
A
Client
decorator that handles failures of remote invocation based on circuit breaker pattern.-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract O
doExecute
(ClientRequestContext ctx, I req, CircuitBreakerCallback callback) Invoked when theCircuitBreaker
is in closed state.final O
execute
(ClientRequestContext ctx, I req) toString()
Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, unwrap, unwrapAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
Method Details
-
execute
Description copied from interface:Client
-
doExecute
protected abstract O doExecute(ClientRequestContext ctx, I req, CircuitBreakerCallback callback) throws Exception Invoked when theCircuitBreaker
is in closed state.- Throws:
Exception
-
toString
-