Interface CommandListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CommandListener
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when an exception claused the call to abort.
    void
    onUpdate(Command command)
    Called when a new command is received and also updated.
    default void
    Same as above but also provides the list of new/updated attributes
  • Method Details

    • onUpdate

      void onUpdate(Command command)
      Called when a new command is received and also updated.
      Parameters:
      command -
    • onUpdate

      default void onUpdate(Command command, Commanding.CommandHistoryEntry cmdHistEntry)
      Same as above but also provides the list of new/updated attributes
      Parameters:
      command - command including all attributes
      cmdHistEntry - the list of new or updated attributes
    • onError

      default void onError(Throwable t)
      Called when an exception claused the call to abort.