Interface HttpRoute.FaultInjectionPolicy.DelayOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpRoute.FaultInjectionPolicy.Delay,HttpRoute.FaultInjectionPolicy.Delay.Builder
- Enclosing class:
- HttpRoute.FaultInjectionPolicy
public static interface HttpRoute.FaultInjectionPolicy.DelayOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.DurationSpecify a fixed delay before forwarding the request.com.google.protobuf.DurationOrBuilderSpecify a fixed delay before forwarding the request.intThe percentage of traffic on which delay will be injected.booleanSpecify a fixed delay before forwarding the request.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasFixedDelay
boolean hasFixedDelay()Specify a fixed delay before forwarding the request.
.google.protobuf.Duration fixed_delay = 1;- Returns:
- Whether the fixedDelay field is set.
-
getFixedDelay
com.google.protobuf.Duration getFixedDelay()Specify a fixed delay before forwarding the request.
.google.protobuf.Duration fixed_delay = 1;- Returns:
- The fixedDelay.
-
getFixedDelayOrBuilder
com.google.protobuf.DurationOrBuilder getFixedDelayOrBuilder()Specify a fixed delay before forwarding the request.
.google.protobuf.Duration fixed_delay = 1; -
getPercentage
int getPercentage()The percentage of traffic on which delay will be injected. The value must be between [0, 100]
int32 percentage = 2;- Returns:
- The percentage.
-