java.lang.Object
software.amazon.lambda.powertools.idempotency.persistence.DataRecord

public class DataRecord extends Object
Data Class for idempotency records. This is actually the item that will be stored in the persistence layer.
  • Constructor Details

  • Method Details

    • getIdempotencyKey

      public String getIdempotencyKey()
    • isExpired

      public boolean isExpired(Instant now)
      Check if data record is expired (based on expiration configured in the IdempotencyConfig)
      Returns:
      Whether the record is currently expired or not
    • getStatus

      public DataRecord.Status getStatus()
    • getExpiryTimestamp

      public long getExpiryTimestamp()
    • getInProgressExpiryTimestamp

      public OptionalLong getInProgressExpiryTimestamp()
    • getResponseData

      public String getResponseData()
    • getPayloadHash

      public String getPayloadHash()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object