Interface Action

  • 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 Action
    This interface represents any piece of code that takes no input and produces no output but may fail.
    • Method Detail

      • execute

        void execute()
              throws java.lang.Throwable
        Perform this action.
        Throws:
        java.lang.Throwable - in case anything goes wrong
      • executeSafe

        default void executeSafe()
        Performs this actionl. If any error occurs, it will be merely logged.