Class IdempotencyHandler

java.lang.Object
software.amazon.lambda.powertools.idempotency.internal.IdempotencyHandler

public class IdempotencyHandler extends Object
Internal class that will handle the Idempotency, and use the PersistenceStore to store the result of previous calls.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IdempotencyHandler(org.aspectj.lang.ProceedingJoinPoint pjp, String functionName, com.fasterxml.jackson.databind.JsonNode payload, com.amazonaws.services.lambda.runtime.Context lambdaContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Main entry point for handling idempotent execution of a function.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IdempotencyHandler

      public IdempotencyHandler(org.aspectj.lang.ProceedingJoinPoint pjp, String functionName, com.fasterxml.jackson.databind.JsonNode payload, com.amazonaws.services.lambda.runtime.Context lambdaContext)
  • Method Details

    • handle

      public Object handle() throws Throwable
      Main entry point for handling idempotent execution of a function.
      Returns:
      function response
      Throws:
      Throwable