Interface BaseContext
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
DurableContext,StepContext
- All Known Implementing Classes:
BaseContextImpl,DurableContextImpl,StepContextImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this context.Gets the context ID for this context.Gets the context name for this context.Returns the configuration for durable execution behavior.Returns the current durable execution arncom.amazonaws.services.lambda.runtime.ContextReturns the AWS Lambda runtime context.Gets a logger with additional information of the current execution context.booleanReturns whether this context is currently in replay mode.
-
Method Details
-
getLogger
DurableLogger getLogger()Gets a logger with additional information of the current execution context.- Returns:
- a DurableLogger instance
-
getLambdaContext
com.amazonaws.services.lambda.runtime.Context getLambdaContext()Returns the AWS Lambda runtime context.- Returns:
- the Lambda context
-
getExecutionArn
String getExecutionArn()Returns the current durable execution arn- Returns:
- the execution arn
-
getDurableConfig
DurableConfig getDurableConfig()Returns the configuration for durable execution behavior.- Returns:
- the durable configuration
-
getContextId
String getContextId()Gets the context ID for this context. Null for root context, operationId of the context operation for child contexts. -
getContextName
String getContextName()Gets the context name for this context. Null for root context. -
isReplaying
boolean isReplaying()Returns whether this context is currently in replay mode. -
close
void close()Closes this context.- Specified by:
closein interfaceAutoCloseable
-