public static final class TaskRetryPolicy.Builder extends GeneratedMessageV3.Builder<TaskRetryPolicy.Builder> implements TaskRetryPolicyOrBuilder
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.
Protobuf type google.cloud.managedkafka.v1.TaskRetryPolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TaskRetryPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TaskRetryPolicy build()
buildPartial()
public TaskRetryPolicy buildPartial()
clear()
public TaskRetryPolicy.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TaskRetryPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public TaskRetryPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public TaskRetryPolicy.Builder clone()
Overrides
getDefaultInstanceForType()
public TaskRetryPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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];
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];
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];
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TaskRetryPolicy other)
public TaskRetryPolicy.Builder mergeFrom(TaskRetryPolicy other)
public TaskRetryPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TaskRetryPolicy.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
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
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaskRetryPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TaskRetryPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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
|
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
|
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TaskRetryPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TaskRetryPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides