@@ -207,6 +207,9 @@ public void setCas(long inCas) {
207
207
/**
208
208
* Get the CAS for this operation.
209
209
*
210
+ * The interrupted status of the current thread is cleared by this method.
211
+ * Inspect the returned OperationStatus to check whether an interruption has taken place.
212
+ *
210
213
* @throws UnsupportedOperationException If this is for an ASCII protocol
211
214
* configured client.
212
215
* @return the CAS for this operation or null if unsuccessful.
@@ -218,7 +221,6 @@ public Long getCas() {
218
221
get ();
219
222
} catch (InterruptedException e ) {
220
223
status = new OperationStatus (false , "Interrupted" , StatusCode .INTERRUPTED );
221
- Thread .currentThread ().isInterrupted ();
222
224
} catch (ExecutionException e ) {
223
225
getLogger ().warn ("Error getting cas of operation" , e );
224
226
}
@@ -235,6 +237,9 @@ public Long getCas() {
235
237
* Note that the operation status may change as the operation is tried and
236
238
* potentially retried against the servers specified by the NodeLocator.
237
239
*
240
+ * The interrupted status of the current thread is cleared by this method.
241
+ * Inspect the returned OperationStatus to check whether an interruption has taken place.
242
+ *
238
243
* @return OperationStatus
239
244
*/
240
245
public OperationStatus getStatus () {
@@ -243,7 +248,6 @@ public OperationStatus getStatus() {
243
248
get ();
244
249
} catch (InterruptedException e ) {
245
250
status = new OperationStatus (false , "Interrupted" , StatusCode .INTERRUPTED );
246
- Thread .currentThread ().isInterrupted ();
247
251
} catch (ExecutionException e ) {
248
252
getLogger ().warn ("Error getting status of operation" , e );
249
253
}
0 commit comments