Interface CamelContextTracker.Filter

All Superinterfaces:
Predicate<CamelContext>
Enclosing class:
CamelContextTracker
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 CamelContextTracker.Filter extends Predicate<CamelContext>
Decides which CamelContext instances a CamelContextTracker is notified about.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(CamelContext camelContext)
    Whether the given context should be tracked.
    default boolean
    test(CamelContext camelContext)
     

    Methods inherited from interface Predicate

    and, negate, or
  • Method Details

    • accept

      boolean accept(CamelContext camelContext)
      Whether the given context should be tracked.
      Parameters:
      camelContext - the camel context
      Returns:
      true to track the context
    • test

      default boolean test(CamelContext camelContext)
      Specified by:
      test in interface Predicate<CamelContext>