Interface BaseContext

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
DurableContext, StepContext
All Known Implementing Classes:
BaseContextImpl, DurableContextImpl, StepContextImpl

public interface BaseContext extends AutoCloseable
  • 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:
      close in interface AutoCloseable