Class ReplaceRequest
java.lang.Object
com.couchbase.client.core.message.AbstractCouchbaseRequest
com.couchbase.client.core.message.kv.AbstractKeyValueRequest
com.couchbase.client.core.message.kv.ReplaceRequest
- All Implemented Interfaces:
CouchbaseMessage
,CouchbaseRequest
,BinaryRequest
,BinaryStoreRequest
public class ReplaceRequest extends AbstractKeyValueRequest implements BinaryStoreRequest
-
Field Summary
Fields inherited from class com.couchbase.client.core.message.kv.AbstractKeyValueRequest
DEFAULT_PARTITION
-
Constructor Summary
Constructors Constructor Description ReplaceRequest(String key, ByteBuf content, long cas, int exp, int flags, String bucket)
Creates a newReplaceRequest
.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 newReplaceRequest
.ReplaceRequest(String key, ByteBuf content, long cas, String bucket, boolean json)
ReplaceRequest(String key, ByteBuf content, String bucket)
Creates a newReplaceRequest
.ReplaceRequest(String key, ByteBuf content, String bucket, boolean json)
-
Method Summary
Methods inherited from class com.couchbase.client.core.message.kv.AbstractKeyValueRequest
afterSpanSet, key, keyBytes, opaque, operationId, partition, partition
Methods inherited from class com.couchbase.client.core.message.AbstractCouchbaseRequest
bucket, complete, creationTime, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, toString, username
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.message.kv.BinaryRequest
key, keyBytes, opaque, partition, partition
Methods inherited from interface com.couchbase.client.core.message.CouchbaseMessage
creationTime
Methods inherited from interface com.couchbase.client.core.message.CouchbaseRequest
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, username
-
Constructor Details
-
ReplaceRequest
Creates a newReplaceRequest
.- Parameters:
key
- the key of the document.content
- the content of the document.bucket
- the name of the bucket.
-
ReplaceRequest
-
ReplaceRequest
Creates a newReplaceRequest
.- Parameters:
key
- the key of the document.content
- the content of the document.cas
- the cas value.bucket
- the name of the bucket.
-
ReplaceRequest
-
ReplaceRequest
Creates a newReplaceRequest
.- Parameters:
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.
-
ReplaceRequest
-
-
Method Details
-
expiration
public int expiration()Returns the expiration time for this document.- Specified by:
expiration
in interfaceBinaryStoreRequest
- Returns:
- the expiration time.
-
flags
public int flags()Returns the flags for this document.- Specified by:
flags
in interfaceBinaryStoreRequest
- Returns:
- the flags.
-
content
The content of the document.- Specified by:
content
in interfaceBinaryStoreRequest
- Returns:
- the content.
-
cas
public long cas()The CAS value of the request.- Returns:
- the cas value.
-
isJson
public boolean isJson()- Specified by:
isJson
in interfaceBinaryStoreRequest
-