public class IncrementOptions extends CommonDurabilityOptions<IncrementOptions>
| Modifier and Type | Class and Description |
|---|---|
class |
IncrementOptions.Built |
CommonDurabilityOptions.BuiltCommonDurabilityOptionsCommonOptions.BuiltCommonOptions| Modifier and Type | Method and Description |
|---|---|
IncrementOptions.Built |
build() |
IncrementOptions |
delta(long delta)
The amount of which the document value should be incremented.
|
IncrementOptions |
expiry(Duration expiry)
Set a relative expiration time for the document (by default no expiry is set).
|
IncrementOptions |
expiry(Instant expiry)
Set an absolute expiration time for the document (by default no expiry is set).
|
static IncrementOptions |
incrementOptions()
Creates a new
IncrementOptions. |
IncrementOptions |
initial(long initial)
The initial value that should be used if the document has not been created yet.
|
durability, durabilityclientContext, parentSpan, retryStrategy, self, timeoutpublic static IncrementOptions incrementOptions()
IncrementOptions.public IncrementOptions delta(long delta)
delta - the amount to increment.public IncrementOptions initial(long initial)
initial - the initial value to use.public IncrementOptions expiry(Duration expiry)
expiry - the custom expiry value of the document.public IncrementOptions expiry(Instant expiry)
expiry - the custom expiry value of the document.@Stability.Internal public IncrementOptions.Built build()
Copyright © 2021 Couchbase, Inc.. All rights reserved.