Package org.apache.pulsar.internal
Interface CommandHook
- All Known Implementing Classes:
AdminShell,ClientShell,PulsarAdminTool,PulsarClientTool
public interface CommandHook
CommandHook is used for injecting or configuring parameters during different stages of command execution.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intpreRun()The preRun hook is used to execute commands before.
-
Method Details
-
preRun
default int preRun()The preRun hook is used to execute commands before.- Returns:
- If the return value is 0, continue to the next stage.
-