Class ForwardCompatibility
- java.lang.Object
-
- com.couchbase.transactions.forwards.ForwardCompatibility
-
@Internal public class ForwardCompatibility extends java.lang.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.java.json.JsonObject json)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.couchbase.transactions.forwards.ForwardCompatBehaviourFull
check(ForwardCompatibilityStages fc, Supported supported)
static reactor.core.publisher.Mono<java.lang.Void>
check(ForwardCompatibilityStages fc, java.util.Optional<ForwardCompatibility> forwardCompatibility, TransactionLogger logger, Supported supported)
Returns empty if it's ok to continue, otherwise an error:java.lang.String
toString()
-
-
-
Method Detail
-
check
public com.couchbase.transactions.forwards.ForwardCompatBehaviourFull check(ForwardCompatibilityStages fc, Supported supported)
-
check
public static reactor.core.publisher.Mono<java.lang.Void> check(ForwardCompatibilityStages fc, java.util.Optional<ForwardCompatibility> forwardCompatibility, @Nullable TransactionLogger 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-