Class CommandExecutor

java.lang.Object
dev.sympho.modular_commands.execute.CommandExecutor
Direct Known Subclasses:
BaseCommandExecutor

public abstract class CommandExecutor extends Object
Executor that receives events and invokes triggered commands as appropriate.
Since:
1.0
Version:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
    The logger.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Flux<?>
    Constructs the processing pipeline that processes command events.
    boolean
    Start receiving events and executing commands.
    boolean
    Stops receiving events and executing commands.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
      The logger.
  • Constructor Details

    • CommandExecutor

      protected CommandExecutor()
      Creates a new instance.
  • Method Details

    • buildPipeline

      @SideEffectFree protected abstract Flux<?> buildPipeline()
      Constructs the processing pipeline that processes command events.
      Returns:
      The constructed pipeline.
    • start

      public boolean start()
      Start receiving events and executing commands.
      Returns:
      true if the call started the executor, false if it was already started.
    • stop

      public boolean stop()
      Stops receiving events and executing commands.
      Returns:
      true if the call stopped the executor, false if it was already stopped.