Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: Java 1.0
Community Wiki and Resources
Wiki: Java Client Library
Download Client Library
JavaDoc
Java Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
7 Retrieve Operations
Chapter Sections
Chapters

7.6. Get and Lock

API Callclient.getAndLock(key [, getl-expiry ])
Asynchronousyes
Description Get the value for a key, lock the key from changes
ReturnsCASValue<Object> ( CASValue as Object )
Arguments 
String key Document ID used to identify the value
int getl-expiry Expiry time for lock
 Default15 
 Maximum30 
Exceptions 
OperationTimeoutException Exception timeout occured while waiting for value.
RuntimeException Exception object specifying interruption while waiting for value.