aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahoo-inc.com>2017-09-12 16:04:33 +0200
committerTor Brede Vekterli <vekterli@yahoo-inc.com>2017-09-12 16:04:33 +0200
commit7d4a7e6bea526a4550c9cd679665a07eaaffe638 (patch)
treec9e94a2afbea335c7edc4d7928464c88b6c7391e /clustercontroller-utils
parentf9fa1cc6d50aedb47cd80cb8ded9c34fe338532f (diff)
Add comment that cluster state ACK waiting is the default
Diffstat (limited to 'clustercontroller-utils')
-rw-r--r--clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/requests/SetUnitStateRequest.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/requests/SetUnitStateRequest.java b/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/requests/SetUnitStateRequest.java
index 5a9b85e734b..78552f62e06 100644
--- a/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/requests/SetUnitStateRequest.java
+++ b/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/requests/SetUnitStateRequest.java
@@ -31,8 +31,15 @@ public interface SetUnitStateRequest extends UnitRequest {
Condition getCondition();
enum ResponseWait {
- WAIT_UNTIL_CLUSTER_ACKED("wait-until-cluster-acked"), // Wait for state change to be ACKed by cluster
- NO_WAIT("no-wait"); // Return without waiting for state change to be ACKed by cluster
+ /**
+ * Wait for state change to be ACKed by cluster. Default unless request
+ * explicitly specifies otherwise.
+ */
+ WAIT_UNTIL_CLUSTER_ACKED("wait-until-cluster-acked"),
+ /**
+ * Return without waiting for state change to be ACKed by cluster.
+ */
+ NO_WAIT("no-wait");
private final String name;