D - T - @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,
ResponseStatus status) |
Class<D> |
documentType() |
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,
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, ResponseStatus status)
@Deprecated D newDocument(String id, int expiry, T content, long cas)
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, MutationToken mutationToken)
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 © 2015 Couchbase, Inc.