Class ForwardCompatibility
java.lang.Object
com.couchbase.client.core.transaction.forwards.ForwardCompatibility
A mechanism to help ensure that older clients can be prevented from interacting with transactions created by future
clients that they do not know how to process.
Sample map:
fc: { "WWC_OW": [{m:"X", b:"r"}, {p:"2.2", b:"f"}] "CL": [{p:"2.2", b:"f"}], }
-
Constructor Summary
ConstructorDescriptionForwardCompatibility
(com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode json) -
Method Summary
Modifier and TypeMethodDescriptioncheck
(Core core, ForwardCompatibilityStage fc, Optional<ForwardCompatibility> forwardCompatibility, CoreTransactionLogger logger, CoreTransactionsSupportedExtensions supported) Returns empty if it's ok to continue, otherwise an error:com.couchbase.client.core.transaction.forwards.ForwardCompatBehaviourFull
check
(ForwardCompatibilityStage fc, CoreTransactionsSupportedExtensions supported) toString()
-
Constructor Details
-
ForwardCompatibility
public ForwardCompatibility(com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode json)
-
-
Method Details
-
check
public com.couchbase.client.core.transaction.forwards.ForwardCompatBehaviourFull check(ForwardCompatibilityStage fc, CoreTransactionsSupportedExtensions supported) -
check
public static Mono<Void> check(Core core, ForwardCompatibilityStage fc, Optional<ForwardCompatibility> forwardCompatibility, @Nullable CoreTransactionLogger logger, CoreTransactionsSupportedExtensions supported) Returns empty if it's ok to continue, otherwise an error:Throws ForwardCompatibilityRequiresRetry if the 'thing' (transaction or cleanup attempt) should be retried Throws ForwardCompatibilityFailure else if the 'thing' should fast-fail
-
toString
-