Class TransactionGetReplicaFromPreferredServerGroupOptions
java.lang.Object
com.couchbase.client.java.transactions.config.TransactionGetReplicaFromPreferredServerGroupOptions
Operations controlling a transactional getReplicaFromPreferredServerGroup.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TransactionGetReplicaFromPreferredServerGroupOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
transcoder
(Transcoder transcoder) Specify a customTranscoder
that is used to decode the content of the result.
-
Field Details
-
DEFAULT
-
-
Method Details
-
transactionGetReplicaFromPreferredServerGroupOptions
public static TransactionGetReplicaFromPreferredServerGroupOptions transactionGetReplicaFromPreferredServerGroupOptions() -
transcoder
@SinceCouchbase("7.6.2") public TransactionGetReplicaFromPreferredServerGroupOptions transcoder(Transcoder transcoder) Specify a customTranscoder
that is used to decode the content of the result.If not-specified, the
ClusterEnvironment
'sJsonSerializer
(NOT transcoder) is used.It is marked as being available from 7.6.2 because prior to this, only JSON documents were supported in transactions. This release added support for binary documents.
- Parameters:
transcoder
- the custom transcoder that should be used for decoding.- Returns:
- this to allow method chaining.
-
build
-