Class ProcessingTimeoutPolicy.Builder
java.lang.Object
org.apache.pulsar.client.api.v5.config.ProcessingTimeoutPolicy.Builder
- Enclosing class:
ProcessingTimeoutPolicy
Builder for
ProcessingTimeoutPolicy.-
Method Summary
Modifier and TypeMethodDescriptionbuild()redeliveryBackoff(BackoffPolicy redeliveryBackoff) Optional backoff applied between redeliveries.Processing-timeout duration — how long the client waits for the application to ack before asking the broker to redeliver.
-
Method Details
-
timeout
Processing-timeout duration — how long the client waits for the application to ack before asking the broker to redeliver.Duration.ZEROdisables. Required.- Parameters:
timeout- the processing timeout- Returns:
- this builder
-
redeliveryBackoff
Optional backoff applied between redeliveries.null(default) means "redeliver immediately on the next sweep".- Parameters:
redeliveryBackoff- the backoff policy- Returns:
- this builder
-
build
- Returns:
- a new
ProcessingTimeoutPolicyinstance
-