@Stability.Internal
public class ForwardCompatibility
extends java.lang.Object
Sample map:
fc: { "WWC_OW": [{m:"X", b:"r"}, {p:"2.2", b:"f"}] "CL": [{p:"2.2", b:"f"}], }
Constructor and Description |
---|
ForwardCompatibility(com.couchbase.client.java.json.JsonObject json) |
Modifier and Type | Method and Description |
---|---|
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:
|
com.couchbase.transactions.forwards.ForwardCompatBehaviourFull |
check(ForwardCompatibilityStages fc,
Supported supported) |
java.lang.String |
toString() |
public ForwardCompatibility(com.couchbase.client.java.json.JsonObject json)
public com.couchbase.transactions.forwards.ForwardCompatBehaviourFull check(ForwardCompatibilityStages fc, Supported supported)
public static reactor.core.publisher.Mono<java.lang.Void> check(ForwardCompatibilityStages fc, java.util.Optional<ForwardCompatibility> forwardCompatibility, @Nullable TransactionLogger logger, Supported supported)
Throws ForwardCompatibilityRequiresRetry if the 'thing' (transaction or cleanup attempt) should be retried Throws ForwardCompatibilityFailure else if the 'thing' should fast-fail
public java.lang.String toString()
toString
in class java.lang.Object