public abstract class AbstractKeyValueRequest extends AbstractCouchbaseRequest implements BinaryRequest
Default implementation of a BinaryRequest
.
Modifier and Type | Field and Description |
---|---|
protected static short |
DEFAULT_PARTITION |
Modifier | Constructor and Description |
---|---|
protected |
AbstractKeyValueRequest(java.lang.String key,
java.lang.String bucket,
java.lang.String password)
Creates a new
AbstractKeyValueRequest . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
key()
The key of the document.
|
short |
partition()
The partition (vbucket) to use for this request.
|
BinaryRequest |
partition(short partition)
Set the partition ID.
|
bucket, observable, password, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, observable, password
protected AbstractKeyValueRequest(java.lang.String key, java.lang.String bucket, java.lang.String password)
Creates a new AbstractKeyValueRequest
.
key
- the key of the document.bucket
- the bucket of the document.password
- the optional password of the bucket.public java.lang.String key()
BinaryRequest
The key of the document.
key
in interface BinaryRequest
public short partition()
BinaryRequest
The partition (vbucket) to use for this request.
partition
in interface BinaryRequest
public BinaryRequest partition(short partition)
BinaryRequest
Set the partition ID.
partition
in interface BinaryRequest
partition
- the id of the partition.BinaryRequest
for proper chaining.