Class IdempotencyConfig
java.lang.Object
software.amazon.lambda.powertools.idempotency.IdempotencyConfig
Configuration of the idempotency feature. Use the
IdempotencyConfig.Builder to create an instance.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic IdempotencyConfig.Builderbuilder()Create a builder that can be used to configure and create aIdempotencyConfig.longcom.amazonaws.services.lambda.runtime.ContextintvoidsetLambdaContext(com.amazonaws.services.lambda.runtime.Context lambdaContext) booleanboolean
-
Method Details
-
builder
Create a builder that can be used to configure and create aIdempotencyConfig.- Returns:
- a new instance of
IdempotencyConfig.Builder
-
getLocalCacheMaxItems
public int getLocalCacheMaxItems() -
useLocalCache
public boolean useLocalCache() -
getExpirationInSeconds
public long getExpirationInSeconds() -
getEventKeyJMESPath
-
getPayloadValidationJMESPath
-
throwOnNoIdempotencyKey
public boolean throwOnNoIdempotencyKey() -
getHashFunction
-
getLambdaContext
public com.amazonaws.services.lambda.runtime.Context getLambdaContext() -
setLambdaContext
public void setLambdaContext(com.amazonaws.services.lambda.runtime.Context lambdaContext) -
getResponseHook
-