Class CallbackConfig.Builder
java.lang.Object
software.amazon.lambda.durable.config.CallbackConfig.Builder
- Enclosing class:
- CallbackConfig
Builder for
CallbackConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theCallbackConfiginstance.heartbeatTimeout(Duration heartbeatTimeout) Sets the maximum duration between heartbeats before the callback is considered failed.Sets a custom serializer for the callback.Sets the maximum duration to wait for the callback to complete before timing out.
-
Constructor Details
-
Builder
-
-
Method Details
-
timeout
Sets the maximum duration to wait for the callback to complete before timing out.- Parameters:
timeout- the timeout duration- Returns:
- this builder for method chaining
-
heartbeatTimeout
Sets the maximum duration between heartbeats before the callback is considered failed.- Parameters:
heartbeatTimeout- the heartbeat timeout duration- Returns:
- this builder for method chaining
-
serDes
Sets a custom serializer for the callback.If not specified, the callback will use the default SerDes configured for the handler. This allows per-callback customization of serialization behavior, useful for callbacks that need special handling (e.g., custom date formats, encryption, compression).
- Parameters:
serDes- the custom serializer to use, or null to use the default- Returns:
- this builder for method chaining
-
build
Builds theCallbackConfiginstance.
-