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 @Deprecated(since="4.8.0") public interface ServiceFilter
Deprecated.
Allows SPIs to implement custom Service Filter.
See Also:
  • Method Details

    • apply

      List<ServiceDefinition> apply(Exchange exchange, List<ServiceDefinition> services)
      Deprecated.
      Chooses service candidates to use
      Parameters:
      exchange - for content-based filtering
      services - list of services
      Returns:
      the chosen service to use.