Package io.kroxylicious.proxy
Class KafkaProxy
java.lang.Object
io.kroxylicious.proxy.KafkaProxy
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaProxy(PluginFactoryRegistry pfr, Configuration config, Features features) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()reconfigure(Configuration newConfig) Apply the given configuration to this running proxy, restarting only the virtual clusters whose effective configuration differs from the current running state.shutdown()Shuts down a running proxy.startup()Starts this proxy.
-
Constructor Details
-
KafkaProxy
-
-
Method Details
-
startup
Starts this proxy.- Returns:
- a future that completes when the proxy stops (normally or exceptionally).
-
reconfigure
Apply the given configuration to this running proxy, restarting only the virtual clusters whose effective configuration differs from the current running state. Unaffected clusters continue serving traffic throughout the reconfigure.See
ConfigurationReloadOrchestratorfor the full pipeline shape (pre-flight static-section diff, concurrency control, change detection, per-VC execution, result construction).- Parameters:
newConfig- the desired end-state configuration; must be non-null- Returns:
- a future that completes with the reconfigure outcome
- Throws:
NullPointerException- ifnewConfigisnullIllegalStateException- if the proxy is not in the running state
-
shutdown
Shuts down a running proxy. Idempotent: safe to call from any thread, including JVM shutdown hooks, and safe to call beforestartup()or after already stopped.- Returns:
- a future that completes when shutdown is complete, identically to the future returned by
startup()
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-