Package org.apache.camel.cloud
Interface ServiceChooser
-
- 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 ServiceChooser
Allows SPIs to implement custom Service Chooser.- See Also:
ServiceDiscovery
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceDefinition
choose(List<ServiceDefinition> services)
Chooses one of the service to use
-
-
-
Method Detail
-
choose
ServiceDefinition choose(List<ServiceDefinition> services)
Chooses one of the service to use- Parameters:
services
- list of services- Returns:
- the chosen service to use.
-
-