Class FilterInvokers

java.lang.Object
io.kroxylicious.proxy.internal.filter.FilterInvokers

public class FilterInvokers extends Object
Factory for FilterInvokers. The intention is to keep the Invoker implementations as private as we can, so that invocation is a framework concern.
  • Method Details

    • arrayInvoker

      public static FilterInvoker arrayInvoker(io.kroxylicious.proxy.filter.Filter filter)
      Create an invoker for this filter that avoids instanceof when deciding if the filter should be consulted/handle messages. Instead, it stores an invoker for each targeted request-type and response-type in an array.
      Parameters:
      filter - the filter
      Returns:
      an invoker for the filter
    • handleNothingInvoker

      public static FilterInvoker handleNothingInvoker()
      An invoker that does not handle any requests or responses
      Returns:
      invoker