Class 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 Detail

      • ForwardCompatibility

        public ForwardCompatibility​(com.couchbase.client.java.json.JsonObject json)
    • Method Detail

      • 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 class java.lang.Object