Package io.servicetalk.router.api
Interface RouteExecutionStrategyFactory<ES>
-
- Type Parameters:
ES- protocol-specific execution strategy implementation
- All Known Implementing Classes:
DefaultRouteExecutionStrategyFactory
- 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 interface RouteExecutionStrategyFactory<ES>A factory that creates an execution strategy for differentids ofRouteExecutionStrategyannotation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ESget(java.lang.String id)
-
-
-
Method Detail
-
get
ES get(java.lang.String id)
- Parameters:
id- ofRouteExecutionStrategy- Returns:
RouteExecutionStrategyFactoryimplementation- Throws:
java.lang.IllegalArgumentException- ifidis unknown and no fallbackRouteExecutionStrategyFactorycould be used
-
-