15841585158615871588158915901591159215931594
executorService); casOp.addListener(new OperationCompletionListener() { @Override public void onComplete(OperationFuture<?> future) throws Exception { CASResponse casr; try { casr = (CASResponse) future.get(); observeFuture.set(casr, future.getStatus()); if (future.getCas() != null) {
14951496149714981499150015011502150315041505
} @Override public CASResponse cas(String key, long cas, int exp, Object value, PersistTo req, ReplicateTo rep) { CASResponse casr = null; try { OperationFuture<CASResponse> casOp = asyncCas(key, cas, exp, value, req, rep);
15951596159715981599160016011602160316041605
13401341134213431344134513461347134813491350
14401441144214431444144514461447144814491450
266267268269270271272273274275276
putEntry(url, updatedEntry); return; } else { final byte[] updatedBytes = serializeEntry(url, updatedEntry); final CASResponse casResult = client.cas(key, v.getCas(), updatedBytes); if (casResult != CASResponse.OK) { numRetries++; } else { return;