@FunctionalInterface public static interface KeyedCircuitBreakerMapping.KeySelector<K>
Request.| Modifier and Type | Field and Description |
|---|---|
static KeyedCircuitBreakerMapping.KeySelector<String> |
HOST
A
KeyedCircuitBreakerMapping.KeySelector that returns a key consisted of remote host name, IP address and port number. |
static KeyedCircuitBreakerMapping.KeySelector<String> |
HOST_AND_METHOD
A
KeyedCircuitBreakerMapping.KeySelector that returns a key consisted of remote host name, IP address, port number
and method name. |
static KeyedCircuitBreakerMapping.KeySelector<String> |
METHOD
A
KeyedCircuitBreakerMapping.KeySelector that returns remote method name as a key. |
| Modifier and Type | Method and Description |
|---|---|
K |
get(ClientRequestContext ctx,
Request req)
Returns the mapping key of the given
Request. |
static final KeyedCircuitBreakerMapping.KeySelector<String> METHOD
KeyedCircuitBreakerMapping.KeySelector that returns remote method name as a key.static final KeyedCircuitBreakerMapping.KeySelector<String> HOST
KeyedCircuitBreakerMapping.KeySelector that returns a key consisted of remote host name, IP address and port number.static final KeyedCircuitBreakerMapping.KeySelector<String> HOST_AND_METHOD
KeyedCircuitBreakerMapping.KeySelector that returns a key consisted of remote host name, IP address, port number
and method name.Copyright © 2020 LeanCloud. All rights reserved.