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, @Nullable Consumer<CommandExecutor> onTakeZoneLeadership, @Nullable Consumer<CommandExecutor> onReleaseZoneLeadership)
      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
      onTakeZoneLeadership - the callback to be invoked after the replica has taken the zone leadership
      onReleaseZoneLeadership - the callback to be invoked before the replica releases the zone leadership
  • Method Details