Interface HandlerContext


public interface HandlerContext
Provides runtime information about the current function invocation.

This context is passed to every CloudRequestHandler and includes platform-specific metadata such as request ID, function name, and resource limits. Implementations of this interface are provided by the platform adapter (e.g., AWS Lambda or Azure Functions).

  • Method Details

    • getRequestId

      String getRequestId()
      Returns:
      the unique ID of the current request
    • getFunctionName

      String getFunctionName()
      Returns:
      the name of the deployed function
    • getFunctionVersion

      String getFunctionVersion()
      Returns:
      the version of the function
    • getInvokedFunctionArn

      String getInvokedFunctionArn()
      Returns:
      the fully qualified ARN (or platform-specific equivalent) of the invoked function
    • getLogGroupName

      String getLogGroupName()
      Returns:
      the name of the log group for this function
    • getLogStreamName

      String getLogStreamName()
      Returns:
      the name of the log stream associated with this invocation
    • getRemainingTimeInMillis

      long getRemainingTimeInMillis()
      Returns:
      the remaining time available to the function in milliseconds
    • getMemoryLimitInMB

      int getMemoryLimitInMB()
      Returns:
      the memory limit for the function in megabytes