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 Summary

    Modifier and Type
    Method
    Description
    void
    Perform this action.
    default void
    Performs this actionl.
  • Method Details

    • execute

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

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