public static final class TaskRetryPolicy.Builder extends GeneratedMessage.Builder<TaskRetryPolicy.Builder> implements TaskRetryPolicyOrBuilderTask 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.
Protobuf type google.cloud.managedkafka.v1.TaskRetryPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TaskRetryPolicy.BuilderImplements
TaskRetryPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TaskRetryPolicy build()| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy |
|
buildPartial()
public TaskRetryPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy |
|
clear()
public TaskRetryPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
clearMaximumBackoff()
public TaskRetryPolicy.Builder clearMaximumBackoff()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
clearMinimumBackoff()
public TaskRetryPolicy.Builder clearMinimumBackoff()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
getDefaultInstanceForType()
public TaskRetryPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMaximumBackoff()
public Duration getMaximumBackoff()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The maximumBackoff. |
getMaximumBackoffBuilder()
public Duration.Builder getMaximumBackoffBuilder()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMaximumBackoffOrBuilder()
public DurationOrBuilder getMaximumBackoffOrBuilder()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getMinimumBackoff()
public Duration getMinimumBackoff()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The minimumBackoff. |
getMinimumBackoffBuilder()
public Duration.Builder getMinimumBackoffBuilder()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMinimumBackoffOrBuilder()
public DurationOrBuilder getMinimumBackoffOrBuilder()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
hasMaximumBackoff()
public boolean hasMaximumBackoff()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maximumBackoff field is set. |
hasMinimumBackoff()
public boolean hasMinimumBackoff()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minimumBackoff field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TaskRetryPolicy other)
public TaskRetryPolicy.Builder mergeFrom(TaskRetryPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
TaskRetryPolicy |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TaskRetryPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TaskRetryPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
mergeMaximumBackoff(Duration value)
public TaskRetryPolicy.Builder mergeMaximumBackoff(Duration value)Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
mergeMinimumBackoff(Duration value)
public TaskRetryPolicy.Builder mergeMinimumBackoff(Duration value)Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
setMaximumBackoff(Duration value)
public TaskRetryPolicy.Builder setMaximumBackoff(Duration value)Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
setMaximumBackoff(Duration.Builder builderForValue)
public TaskRetryPolicy.Builder setMaximumBackoff(Duration.Builder builderForValue)Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
setMinimumBackoff(Duration value)
public TaskRetryPolicy.Builder setMinimumBackoff(Duration value)Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
setMinimumBackoff(Duration.Builder builderForValue)
public TaskRetryPolicy.Builder setMinimumBackoff(Duration.Builder builderForValue)Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|