Skip to content

WaitConditionHandleProps

Properties for defining a WaitConditionHandle.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ros-waitconditionhandle

Initializer

import com.aliyun.ros.cdk.ros.WaitConditionHandleProps;
WaitConditionHandleProps.builder()
//  .count(java.lang.Number)
//  .count(IResolvable)
//  .mode(java.lang.String)
//  .mode(IResolvable)
    .build();

Properties

Name Type Description
count java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property count: There are 3 preconditions that make Count taking effect: 1.Mode is set to Full. 2.Count >= 0. 3.The id of signal is not specified. If so, it will be a self-increasing integer started from 1. For example, the id of the first signal is 1, the id of the second signal is 2, and so on.
mode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mode: If set to Increment, all old signals will be deleted before update.

countOptional

public java.lang.Object getCount();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property count: There are 3 preconditions that make Count taking effect: 1.Mode is set to Full. 2.Count >= 0. 3.The id of signal is not specified. If so, it will be a self-increasing integer started from 1. For example, the id of the first signal is 1, the id of the second signal is 2, and so on.

If Count takes effect, signals with id > Count will be deleted before update. The default value is -1, which means no effect. It is recommended to quote the same value with WaitCondition.Count.


modeOptional

public java.lang.Object getMode();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property mode: If set to Increment, all old signals will be deleted before update.

In this mode, WaitCondition.Count should reference an incremental value instead of a full value, such as ScalingGroupEnable.ScalingRuleArisExecuteResultNumberOfAddedInstances.

If set to Full, no old signal will be deleted unless Count is set. In this mode, WaitCondition.Count should reference a full value, such as the same value with InstanceGroup.MaxAmount. It is recommended to use this mode with Count.

Default to Full.