Package io.kroxylicious.proxy.filter
Interface FilterFactoryContext
public interface FilterFactoryContext
Construction context for Filters. Used to pass the filter configuration and environmental resources
to the FilterFactory when it is creating a new instance of the Filter. see
FilterFactory.createFilter(FilterFactoryContext, Object)-
Method Summary
Modifier and TypeMethodDescriptionAn executor backed by the single Thread responsible for dispatching work to a Filter instance for a channel.pluginImplementationNames(Class<P> pluginClass) Returns the implementation names of the registered instances of this plugin.<P> PpluginInstance(Class<P> pluginClass, String implementationName) Gets a plugin instance for the given plugin type and name
-
Method Details
-
filterDispatchExecutor
FilterDispatchExecutor filterDispatchExecutor()An executor backed by the single Thread responsible for dispatching work to a Filter instance for a channel. It is safe to mutate Filter members from this executor.- Returns:
- executor
- Throws:
IllegalStateException- if the factory is not bound to a channel yet.
-
pluginInstance
Gets a plugin instance for the given plugin type and name- Type Parameters:
P- The plugin manager type- Parameters:
pluginClass- The plugin typeimplementationName- The plugin implementation name- Returns:
- The plugin instance
- Throws:
UnknownPluginInstanceException- the plugin with given implementation name is unknown
-
pluginImplementationNames
Returns the implementation names of the registered instances of this plugin.- Type Parameters:
P- The plugin manager type- Parameters:
pluginClass- The plugin type- Returns:
- set of known implementation names registered for the given plugin class.
-