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. The default values for minimum and maximum backoffs are
60 seconds and 30 minutes respectively.
Generated from protobuf message google.cloud.managedkafka.v1.TaskRetryPolicy
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Managed Kafka V1 Client - Class TaskRetryPolicy (0.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.1 (latest)](/php/docs/reference/cloud-managedkafka/latest/V1.TaskRetryPolicy)\n- [0.6.0](/php/docs/reference/cloud-managedkafka/0.6.0/V1.TaskRetryPolicy)\n- [0.5.0](/php/docs/reference/cloud-managedkafka/0.5.0/V1.TaskRetryPolicy)\n- [0.4.1](/php/docs/reference/cloud-managedkafka/0.4.1/V1.TaskRetryPolicy)\n- [0.3.1](/php/docs/reference/cloud-managedkafka/0.3.1/V1.TaskRetryPolicy)\n- [0.2.3](/php/docs/reference/cloud-managedkafka/0.2.3/V1.TaskRetryPolicy)\n- [0.1.3](/php/docs/reference/cloud-managedkafka/0.1.3/V1.TaskRetryPolicy) \nReference documentation and code samples for the Google Cloud Managed Kafka V1 Client class TaskRetryPolicy.\n\nTask Retry Policy is implemented on a best-effort\nbasis.\n\nRetry delay will be exponential based on provided minimum and maximum\nbackoffs. \u003chttps://en.wikipedia.org/wiki/Exponential_backoff\u003e.\nNote that the delay between consecutive task restarts may not always\nprecisely match the configured settings. This can happen when the\nConnectCluster is in rebalancing state or if the ConnectCluster is\nunresponsive etc. The default values for minimum and maximum backoffs are\n60 seconds and 30 minutes respectively.\n\nGenerated from protobuf message `google.cloud.managedkafka.v1.TaskRetryPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ManagedKafka \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMinimumBackoff\n\nOptional. The minimum amount of time to wait before retrying a failed task.\n\nThis sets a lower bound for the backoff delay.\n\n### hasMinimumBackoff\n\n### clearMinimumBackoff\n\n### setMinimumBackoff\n\nOptional. The minimum amount of time to wait before retrying a failed task.\n\nThis sets a lower bound for the backoff delay.\n\n### getMaximumBackoff\n\nOptional. The maximum amount of time to wait before retrying a failed task.\n\nThis sets an upper bound for the backoff delay.\n\n### hasMaximumBackoff\n\n### clearMaximumBackoff\n\n### setMaximumBackoff\n\nOptional. The maximum amount of time to wait before retrying a failed task.\n\nThis sets an upper bound for the backoff delay."]]