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)
Sets the expiry for the document.
|
IncrementOptions |
expiry(Instant expiry)
Sets the expiry for the document.
|
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)
The duration must be less than 50 years. For expiry further in the
future, use expiry(Instant).
expiry - the duration after which the document will expire.public IncrementOptions expiry(Instant expiry)
expiry - the point in time when the document will expire.@Stability.Internal public IncrementOptions.Built build()
Copyright © 2021 Couchbase, Inc.. All rights reserved.