Class PredicateUtils

java.lang.Object
io.confluent.telemetry.PredicateUtils

public class PredicateUtils extends Object
  • Field Details

    • ALWAYS_TRUE

      public static final Predicate<Keyed> ALWAYS_TRUE
    • ALWAYS_FALSE

      public static final Predicate<Keyed> ALWAYS_FALSE
    • MATCHER_CACHE_MAX_SIZE

      public static final long MATCHER_CACHE_MAX_SIZE
      Maximum size of the pattern matcher cache. If the count of unique metric names in a single collection cycle exceeds this size, the cache will actually cause a performance penalty due to thrashing. Currently, there are almost 3000 unique metric names in Kafka.
      See Also:
  • Constructor Details

    • PredicateUtils

      public PredicateUtils()
  • Method Details

    • buildCachingMetricsPredicate

      public static Predicate<Keyed> buildCachingMetricsPredicate(String regexString)