| API Call | client.getAndLock(key [, getl-expiry ]) | ||
| Asynchronous | yes | ||
| Description | Get the value for a key, lock the key from changes | ||
| Returns | CASValue<Object> (
CASValue as Object
) | ||
| Arguments | |||
String key | Document ID used to identify the value | ||
int getl-expiry | Expiry time for lock | ||
| Default | 15 | ||
| Maximum | 30 | ||
| Exceptions | |||
OperationTimeoutException | Exception timeout occured while waiting for value. | ||
RuntimeException | Exception object specifying interruption while waiting for value. | ||