- 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.
@NotThreadSafe
@FunctionalInterface
public static interface Soklet.RunAction<E extends @NonNull Throwable>
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 TypeMethodDescriptionvoidrun()Performs work while the enclosing caller owns the running application.
-
Method Details
-
run
Performs work while the enclosing caller owns the running application.- Throws:
E- if application work fails
-