public class UpsertRequest extends AbstractKeyValueRequest implements BinaryStoreRequest
DEFAULT_PARTITION
Constructor and Description |
---|
UpsertRequest(String key,
ByteBuf content,
int exp,
int flags,
String bucket) |
UpsertRequest(String key,
ByteBuf content,
int exp,
int flags,
String bucket,
boolean json)
Creates a new
UpsertRequest . |
UpsertRequest(String key,
ByteBuf content,
String bucket)
Creates a new
UpsertRequest . |
UpsertRequest(String key,
ByteBuf content,
String bucket,
boolean json) |
Modifier and Type | Method and Description |
---|---|
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() |
afterSpanSet, hasSeenNotMyVbucket, key, keyBytes, opaque, operationId, partition, partition, sawNotMyVbucket
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasSeenNotMyVbucket, key, keyBytes, opaque, partition, partition, sawNotMyVbucket
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
creationTime
public UpsertRequest(String key, ByteBuf content, String bucket)
UpsertRequest
.key
- the key of the document.content
- the content of the document.bucket
- the name of the bucket.public UpsertRequest(String key, ByteBuf content, int exp, int flags, String bucket, boolean json)
UpsertRequest
.key
- the key of the document.content
- the content of the document.exp
- the expiration time.flags
- optional flags.bucket
- the the name of the bucket.public int expiration()
expiration
in interface BinaryStoreRequest
public int flags()
flags
in interface BinaryStoreRequest
public ByteBuf content()
content
in interface BinaryStoreRequest
public boolean isJson()
isJson
in interface BinaryStoreRequest
Copyright © 2021 Couchbase, Inc.. All rights reserved.