public static interface ForwardAction.Builder extends SdkPojo, CopyableBuilder<ForwardAction.Builder,ForwardAction>
| Modifier and Type | Method and Description |
|---|---|
ForwardAction.Builder |
targetGroups(Collection<WeightedTargetGroup> targetGroups)
The target groups.
|
ForwardAction.Builder |
targetGroups(Consumer<WeightedTargetGroup.Builder>... targetGroups)
The target groups.
|
ForwardAction.Builder |
targetGroups(WeightedTargetGroup... targetGroups)
The target groups.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildForwardAction.Builder targetGroups(Collection<WeightedTargetGroup> targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
targetGroups - The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward
actions, you can assign a weight that controls the prioritization and selection of each target group.
This means that requests are distributed to individual target groups based on their weights. For
example, if two target groups have the same weight, each target group receives half of the
traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
ForwardAction.Builder targetGroups(WeightedTargetGroup... targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
targetGroups - The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward
actions, you can assign a weight that controls the prioritization and selection of each target group.
This means that requests are distributed to individual target groups based on their weights. For
example, if two target groups have the same weight, each target group receives half of the
traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
ForwardAction.Builder targetGroups(Consumer<WeightedTargetGroup.Builder>... targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
This is a convenience method that creates an instance of theWeightedTargetGroup.Builder avoiding the need to
create one manually via
WeightedTargetGroup.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #targetGroups(List.
targetGroups - a consumer that will call methods on
WeightedTargetGroup.Builder#targetGroups(java.util.Collection) Copyright © 2023. All rights reserved.