Package software.amazon.lambda.durable
Interface StepContext
- All Superinterfaces:
BaseContext
- All Known Implementing Classes:
StepContextImpl
-
Field Summary
Fields inherited from interface software.amazon.lambda.durable.context.BaseContext
CONTEXT -
Method Summary
Modifier and TypeMethodDescriptionintReturns the current retry attempt number (0-based).static StepContextGets the current context (DurableContext or StepContext) for this thread.Methods inherited from interface software.amazon.lambda.durable.context.BaseContext
getContextId, getContextName, getDurableConfig, getExecutionArn, getLambdaContext, getLogger, getLogger, isReplaying
-
Method Details
-
getAttempt
int getAttempt()Returns the current retry attempt number (0-based). -
getCurrentContext
Description copied from interface:BaseContextGets the current context (DurableContext or StepContext) for this thread.- Returns:
- the current context or null if not set
-