Class PluginRunner
java.lang.Object
software.amazon.lambda.durable.plugin.PluginRunner
Composes multiple
DurableExecutionPlugin instances into a single dispatcher.
Event hooks are fire-and-forget: each plugin is called in order, errors are swallowed.
onInvocationEnd is awaited (the SDK blocks until it returns) to allow plugins to flush data before Lambda
freezes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of registered plugins.booleanisEmpty()Returns true if no plugins are registered.static PluginRunnernoOp()Returns a no-op runner that does nothing.voidCalled at the end of each invocation.voidvoidvoidvoidvoidvoid
-
Constructor Details
-
PluginRunner
-
-
Method Details
-
noOp
Returns a no-op runner that does nothing. -
isEmpty
public boolean isEmpty()Returns true if no plugins are registered. -
getPlugins
Returns the list of registered plugins. -
onInvocationStart
-
onInvocationEnd
Called at the end of each invocation. Awaited — the SDK blocks until all plugins return, allowing plugins to flush spans/metrics before Lambda freezes. -
onOperationStart
-
onOperationEnd
-
onOperationChange
-
onUserFunctionStart
-
onUserFunctionEnd
-