Interface Soklet.RunAction<E extends @NonNull Throwable>

Type Parameters:
E - throwable type selected by the action
Enclosing class:
Soklet
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Application work whose return or failure ends one running Soklet scope. The action runs once, on the calling thread after readiness, without a lifecycle handle. Checked failures retain their application-selected type. The action itself has no imposed timeout and is not interrupted by Soklet when a transport stops or JVM shutdown begins.
Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Performs work while the enclosing caller owns the running application.
  • Method Details

    • run

      void run() throws E
      Performs work while the enclosing caller owns the running application.
      Throws:
      E - if application work fails