Interface Action

All Known Implementing Classes:
ActionEndpoint, LocalActionEndpoint, RemoteActionEndpoint
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
Interface all Actions.
  • Method Summary

    Modifier and Type
    Method
    Description
    Action's main method.
  • Method Details

    • handler

      Object handler(Context ctx) throws Exception
      Action's main method. Allowed return types: Promise, CompletableFuture, Tree, String, int, double, byte, float, short, long, boolean, byte[], UUID, Date, InetAddress, BigInteger, BigDecimal, and Java Collections (Map, List, Set) with these types.
      Parameters:
      ctx - invocation context
      Returns:
      result of the action
      Throws:
      Exception - any exception