public class ReplaceRequest extends AbstractKeyValueRequest implements BinaryStoreRequest
DEFAULT_PARTITION
Constructor and Description |
---|
ReplaceRequest(String key,
ByteBuf content,
long cas,
int exp,
int flags,
String bucket)
Creates a new
ReplaceRequest . |
ReplaceRequest(String key,
ByteBuf content,
long cas,
int exp,
int flags,
String bucket,
boolean json) |
ReplaceRequest(String key,
ByteBuf content,
long cas,
String bucket)
Creates a new
ReplaceRequest . |
ReplaceRequest(String key,
ByteBuf content,
long cas,
String bucket,
boolean json) |
ReplaceRequest(String key,
ByteBuf content,
String bucket)
Creates a new
ReplaceRequest . |
ReplaceRequest(String key,
ByteBuf content,
String bucket,
boolean json) |
Modifier and Type | Method and Description |
---|---|
long |
cas()
The CAS value of the request.
|
ByteBuf |
content()
The content of the document.
|
int |
expiration()
Returns the expiration time for this document.
|
int |
flags()
Returns the flags for this document.
|
boolean |
isJson() |
key, keyBytes, opaque, partition, partition
bucket, creationTime, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
key, keyBytes, opaque, partition, partition
bucket, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, username
creationTime
public ReplaceRequest(String key, ByteBuf content, String bucket)
Creates a new ReplaceRequest
.
key
- the key of the document.content
- the content of the document.bucket
- the name of the bucket.public ReplaceRequest(String key, ByteBuf content, long cas, String bucket)
Creates a new ReplaceRequest
.
key
- the key of the document.content
- the content of the document.cas
- the cas value.bucket
- the name of the bucket.public ReplaceRequest(String key, ByteBuf content, long cas, String bucket, boolean json)
public ReplaceRequest(String key, ByteBuf content, long cas, int exp, int flags, String bucket)
Creates a new ReplaceRequest
.
key
- the key of the document.content
- the content of the document.cas
- the cas value.exp
- the expiration time.flags
- optional flags.bucket
- the the name of the bucket.public int expiration()
Returns the expiration time for this document.
expiration
in interface BinaryStoreRequest
public int flags()
Returns the flags for this document.
flags
in interface BinaryStoreRequest
public ByteBuf content()
The content of the document.
content
in interface BinaryStoreRequest
public long cas()
The CAS value of the request.
public boolean isJson()
isJson
in interface BinaryStoreRequest
Copyright © 2017 Couchbase, Inc.. All rights reserved.