@InterfaceStability.Committed
@InterfaceAudience.Public
public interface Transcoder<D extends Document<T>,T>
Modifier and Type | Method and Description |
---|---|
D |
decode(String id,
com.couchbase.client.deps.io.netty.buffer.ByteBuf content,
long cas,
int expiry,
int flags,
com.couchbase.client.core.message.ResponseStatus status) |
Class<D> |
documentType() |
com.couchbase.client.core.lang.Tuple2<com.couchbase.client.deps.io.netty.buffer.ByteBuf,Integer> |
encode(D document) |
D |
newDocument(String id,
int expiry,
T content,
long cas)
Deprecated.
|
D |
newDocument(String id,
int expiry,
T content,
long cas,
com.couchbase.client.core.message.kv.MutationToken mutationToken)
Creates a new Document with the passed in information.
|
D decode(String id, com.couchbase.client.deps.io.netty.buffer.ByteBuf content, long cas, int expiry, int flags, com.couchbase.client.core.message.ResponseStatus status)
com.couchbase.client.core.lang.Tuple2<com.couchbase.client.deps.io.netty.buffer.ByteBuf,Integer> encode(D document)
@Deprecated D newDocument(String id, int expiry, T content, long cas)
Creates a new Document with the passed in information.
Use the one with the mutation token instead (newDocument(String, int, Object, long, MutationToken)
).
id
- the id of the document.expiry
- the document expiration.content
- the document content.cas
- the documents cas value.D newDocument(String id, int expiry, T content, long cas, com.couchbase.client.core.message.kv.MutationToken mutationToken)
Creates a new Document with the passed in information.
id
- the id of the document.expiry
- the document expiration.content
- the document content.cas
- the documents cas value.mutationToken
- the documents mutation token.Copyright © 2014 Couchbase, Inc.