Class ForwardCompatibility
- java.lang.Object
-
- com.couchbase.client.core.transaction.forwards.ForwardCompatibility
-
@Internal public class ForwardCompatibility extends Object
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
Constructors Constructor Description ForwardCompatibility(com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode json)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Mono<Void>
check(Core core, ForwardCompatibilityStage fc, Optional<ForwardCompatibility> forwardCompatibility, CoreTransactionLogger logger, Supported supported)
Returns empty if it's ok to continue, otherwise an error:com.couchbase.client.core.transaction.forwards.ForwardCompatBehaviourFull
check(ForwardCompatibilityStage fc, Supported supported)
String
toString()
-
-
-
Method Detail
-
check
public com.couchbase.client.core.transaction.forwards.ForwardCompatBehaviourFull check(ForwardCompatibilityStage fc, Supported supported)
-
check
public static Mono<Void> check(Core core, ForwardCompatibilityStage fc, Optional<ForwardCompatibility> forwardCompatibility, @Nullable CoreTransactionLogger logger, Supported 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
-
-