Class AbstractCommandExecutor

java.lang.Object
com.linecorp.centraldogma.server.command.AbstractCommandExecutor
All Implemented Interfaces:
CommandExecutor
Direct Known Subclasses:
StandaloneCommandExecutor

public abstract class AbstractCommandExecutor extends Object implements CommandExecutor
Helps to implement a concrete CommandExecutor.
  • Constructor Details

    • AbstractCommandExecutor

      protected AbstractCommandExecutor(@Nullable Consumer<CommandExecutor> onTakeLeadership, @Nullable Consumer<CommandExecutor> onReleaseLeadership)
      Creates a new instance.
      Parameters:
      onTakeLeadership - the callback to be invoked after the replica has taken the leadership
      onReleaseLeadership - the callback to be invoked before the replica releases the leadership
  • Method Details