Package | Description |
---|---|
com.couchbase.client.java | |
com.couchbase.client.java.document | |
com.couchbase.client.java.transcoder |
Modifier and Type | Method and Description |
---|---|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta) |
JsonLongDocument |
Bucket.counter(String id,
long delta)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet with the default kvTimeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial)
Increment or decrement a counter with the given value and a initial value if it does not exist with the default key/value timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
int expiry) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
int expiry)
Increment or decrement a counter with the given value and a initial value if it does not exist with the default key/value timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
int expiry,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
int expiry,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value and a initial value if it does not exist with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo)
Increment or decrement a counter with the given value and a initial value if it does not exist with the default key/value timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value and a initial value if it does not exist with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo,
ReplicateTo replicateTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value and a initial value if it does not exist with the default key/value timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value and a initial value if it does not exist with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
int expiry,
ReplicateTo replicateTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
int expiry,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value and a initial value if it does not exist with the default key/value timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
int expiry,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
int expiry,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value and a initial value if it does not exist with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value and a initial value if it does not exist with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
PersistTo persistTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
PersistTo persistTo)
Increment or decrement a counter with the given value and a initial value if it does not exist with the default key/value timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
PersistTo persistTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
PersistTo persistTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value and a initial value if it does not exist with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
PersistTo persistTo,
ReplicateTo replicateTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
PersistTo persistTo,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value and a initial value if it does not exist with the default key/value timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
PersistTo persistTo,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
PersistTo persistTo,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value and a initial value if it does not exist with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
ReplicateTo replicateTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value and a initial value if it does not exist with the default key/value timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long initial,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long initial,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value and a initial value if it does not exist with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
PersistTo persistTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
PersistTo persistTo)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet with the default kvTimeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
PersistTo persistTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
PersistTo persistTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
PersistTo persistTo,
ReplicateTo replicateTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
PersistTo persistTo,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet with the default kvTimeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
PersistTo persistTo,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
PersistTo persistTo,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet with a custom timeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
ReplicateTo replicateTo) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet with the default kvTimeout.
|
JsonLongDocument |
CouchbaseBucket.counter(String id,
long delta,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit) |
JsonLongDocument |
Bucket.counter(String id,
long delta,
ReplicateTo replicateTo,
long timeout,
TimeUnit timeUnit)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet with a custom timeout.
|
Modifier and Type | Method and Description |
---|---|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
long initial) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
long initial)
Increment or decrement a counter with the given value and a initial value if it does not exist.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
long initial,
int expiry) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
long initial,
int expiry)
Increment or decrement a counter with the given value and a initial value if it does not exist.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo)
Increment or decrement a counter with the given value and a initial value if it does not exist.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo,
ReplicateTo replicateTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
long initial,
int expiry,
PersistTo persistTo,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value and a initial value if it does not exist.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
long initial,
int expiry,
ReplicateTo replicateTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
long initial,
int expiry,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value and a initial value if it does not exist.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
long initial,
PersistTo persistTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
long initial,
PersistTo persistTo)
Increment or decrement a counter with the given value and a initial value if it does not exist.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
long initial,
PersistTo persistTo,
ReplicateTo replicateTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
long initial,
PersistTo persistTo,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value and a initial value if it does not exist.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
long initial,
ReplicateTo replicateTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
long initial,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value and a initial value if it does not exist.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
PersistTo persistTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
PersistTo persistTo)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
PersistTo persistTo,
ReplicateTo replicateTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
PersistTo persistTo,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet.
|
Observable<JsonLongDocument> |
CouchbaseAsyncBucket.counter(String id,
long delta,
ReplicateTo replicateTo) |
Observable<JsonLongDocument> |
AsyncBucket.counter(String id,
long delta,
ReplicateTo replicateTo)
Increment or decrement a counter with the given value or throw an exception if it does not exist yet.
|
Modifier and Type | Method and Description |
---|---|
static JsonLongDocument |
JsonLongDocument.create(String id)
Creates a
JsonLongDocument which the document id. |
static JsonLongDocument |
JsonLongDocument.create(String id,
int expiry,
Long content)
Creates a
JsonLongDocument which the document id, content and the expiration time. |
static JsonLongDocument |
JsonLongDocument.create(String id,
int expiry,
Long content,
long cas)
Creates a
JsonLongDocument which the document id, content, CAS value, expiration time and status code. |
static JsonLongDocument |
JsonLongDocument.create(String id,
int expiry,
Long content,
long cas,
com.couchbase.client.core.message.kv.MutationToken mutationToken)
Creates a
JsonLongDocument which the document id, content, CAS value, expiration time and status code. |
static JsonLongDocument |
JsonLongDocument.create(String id,
Long content)
Creates a
JsonLongDocument which the document id and content. |
static JsonLongDocument |
JsonLongDocument.create(String id,
Long content,
long cas)
Creates a
JsonLongDocument which the document id, content and the CAS value. |
static JsonLongDocument |
JsonLongDocument.from(JsonLongDocument doc,
long cas)
Creates a copy from a different
JsonLongDocument , but changes the CAS value. |
static JsonLongDocument |
JsonLongDocument.from(JsonLongDocument doc,
Long content)
Creates a copy from a different
JsonLongDocument , but changes the content. |
static JsonLongDocument |
JsonLongDocument.from(JsonLongDocument doc,
String id)
Creates a copy from a different
JsonLongDocument , but changes the document ID. |
static JsonLongDocument |
JsonLongDocument.from(JsonLongDocument doc,
String id,
Long content)
Creates a copy from a different
JsonLongDocument , but changes the document ID and content. |
Modifier and Type | Method and Description |
---|---|
static JsonLongDocument |
JsonLongDocument.from(JsonLongDocument doc,
long cas)
Creates a copy from a different
JsonLongDocument , but changes the CAS value. |
static JsonLongDocument |
JsonLongDocument.from(JsonLongDocument doc,
Long content)
Creates a copy from a different
JsonLongDocument , but changes the content. |
static JsonLongDocument |
JsonLongDocument.from(JsonLongDocument doc,
String id)
Creates a copy from a different
JsonLongDocument , but changes the document ID. |
static JsonLongDocument |
JsonLongDocument.from(JsonLongDocument doc,
String id,
Long content)
Creates a copy from a different
JsonLongDocument , but changes the document ID and content. |
Modifier and Type | Method and Description |
---|---|
protected JsonLongDocument |
JsonLongTranscoder.doDecode(String id,
com.couchbase.client.deps.io.netty.buffer.ByteBuf content,
long cas,
int expiry,
int flags,
com.couchbase.client.core.message.ResponseStatus status) |
JsonLongDocument |
JsonLongTranscoder.newDocument(String id,
int expiry,
Long content,
long cas) |
JsonLongDocument |
JsonLongTranscoder.newDocument(String id,
int expiry,
Long content,
long cas,
com.couchbase.client.core.message.kv.MutationToken mutationToken) |
Modifier and Type | Method and Description |
---|---|
Class<JsonLongDocument> |
JsonLongTranscoder.documentType() |
Modifier and Type | Method and Description |
---|---|
protected com.couchbase.client.core.lang.Tuple2<com.couchbase.client.deps.io.netty.buffer.ByteBuf,Integer> |
JsonLongTranscoder.doEncode(JsonLongDocument document) |
Copyright © 2015 Couchbase, Inc.. All rights reserved.