File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
curator-recipes/src/main/java/org/apache/curator/framework/recipes/shared Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,10 @@ public VersionedValue<Integer> getVersionedValue() {
65
65
}
66
66
67
67
/**
68
- * Change the shared count value irrespective of its previous state
68
+ * Change the shared count value irrespective of its previous state.
69
+ *
70
+ * <p>Later {@link #getCount()} will get some more updated value, whether that value is set
71
+ * by this session or a different one cannot be guaranteed though.
69
72
*
70
73
* @param newCount new value
71
74
* @throws Exception ZK errors, interruptions, etc.
@@ -100,6 +103,9 @@ public boolean trySetCount(int newCount) throws Exception {
100
103
* value is updated. i.e. if the count is not successful you can get the updated value
101
104
* by calling {@link #getCount()}.
102
105
*
106
+ * <p>Later {@link #getCount()} will get some more updated value, whether that value is set
107
+ * by this session or a different one cannot be guaranteed though.
108
+ *
103
109
* @param newCount the new value to attempt
104
110
* @return true if the change attempt was successful, false if not. If the change
105
111
* was not successful, {@link #getCount()} will return the updated value
Original file line number Diff line number Diff line change @@ -130,7 +130,10 @@ public VersionedValue<byte[]> getVersionedValue() {
130
130
}
131
131
132
132
/**
133
- * Change the shared value irrespective of its previous state
133
+ * Change the shared value irrespective of its previous state.
134
+ *
135
+ * <p>Later {@link #getValue()} will get some more updated value, whether that value is set
136
+ * by this session or a different one cannot be guaranteed though.
134
137
*
135
138
* @param newValue new value
136
139
* @throws Exception ZK errors, interruptions, etc.
@@ -168,6 +171,9 @@ public boolean trySetValue(byte[] newValue) throws Exception {
168
171
* value is updated. i.e. if the value is not successful you can get the updated value
169
172
* by calling {@link #getValue()}.
170
173
*
174
+ * <p>Later {@link #getValue()} will get some more updated value, whether that value is set
175
+ * by this session or a different one cannot be guaranteed though.
176
+ *
171
177
* @param newValue the new value to attempt
172
178
* @return true if the change attempt was successful, false if not. If the change
173
179
* was not successful, {@link #getValue()} will return the updated value
You can’t perform that action at this time.
0 commit comments