Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class TaskRetryPolicy.
Task Retry Policy is implemented on a best-effort basis.
Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc.
Generated from protobuf message google.cloud.managedkafka.v1.TaskRetryPolicy
Namespace
Google \ Cloud \ ManagedKafka \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ minimum_backoff |
Google\Protobuf\Duration
Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay. |
↳ maximum_backoff |
Google\Protobuf\Duration
Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay. |
getMinimumBackoff
Optional. The minimum amount of time to wait before retrying a failed task.
This sets a lower bound for the backoff delay.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Duration|null |
hasMinimumBackoff
clearMinimumBackoff
setMinimumBackoff
Optional. The minimum amount of time to wait before retrying a failed task.
This sets a lower bound for the backoff delay.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |
getMaximumBackoff
Optional. The maximum amount of time to wait before retrying a failed task.
This sets an upper bound for the backoff delay.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Duration|null |
hasMaximumBackoff
clearMaximumBackoff
setMaximumBackoff
Optional. The maximum amount of time to wait before retrying a failed task.
This sets an upper bound for the backoff delay.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |