Package org.apache.camel.cloud
Interface ServiceFilter
-
- 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 ServiceFilter
Allows SPIs to implement custom Service Filter.- See Also:
ServiceDiscovery
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ServiceDefinition>
apply(Exchange exchange, List<ServiceDefinition> services)
Chooses service candidates to use
-
-
-
Method Detail
-
apply
List<ServiceDefinition> apply(Exchange exchange, List<ServiceDefinition> services)
Chooses service candidates to use- Parameters:
exchange
- for content-based filteringservices
- list of services- Returns:
- the chosen service to use.
-
-