Interface KeyedCircuitBreakerMapping.KeySelector<K>
- Enclosing class:
- KeyedCircuitBreakerMapping<K>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface KeyedCircuitBreakerMapping.KeySelector<K>
Returns the mapping key of the given
Request
.-
Field Summary
Fields Modifier and Type Field Description static KeyedCircuitBreakerMapping.KeySelector<String>
HOST
AKeyedCircuitBreakerMapping.KeySelector
that returns a key consisted of remote host name, IP address and port number.static KeyedCircuitBreakerMapping.KeySelector<String>
HOST_AND_METHOD
AKeyedCircuitBreakerMapping.KeySelector
that returns a key consisted of remote host name, IP address, port number and method name.static KeyedCircuitBreakerMapping.KeySelector<String>
METHOD
AKeyedCircuitBreakerMapping.KeySelector
that returns remote method name as a key. -
Method Summary
Modifier and Type Method Description K
get(ClientRequestContext ctx, Request req)
Returns the mapping key of the givenRequest
.
-
Field Details
-
METHOD
AKeyedCircuitBreakerMapping.KeySelector
that returns remote method name as a key. -
HOST
AKeyedCircuitBreakerMapping.KeySelector
that returns a key consisted of remote host name, IP address and port number. -
HOST_AND_METHOD
AKeyedCircuitBreakerMapping.KeySelector
that returns a key consisted of remote host name, IP address, port number and method name.
-
-
Method Details