@Stability.Internal public class ForwardCompatibility extends 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.core.deps.com.fasterxml.jackson.databind.JsonNode json) |
| Modifier and Type | Method and 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() |
public ForwardCompatibility(com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode json)
public com.couchbase.client.core.transaction.forwards.ForwardCompatBehaviourFull check(ForwardCompatibilityStage fc, Supported supported)
public static Mono<Void> check(Core core, ForwardCompatibilityStage fc, Optional<ForwardCompatibility> forwardCompatibility, @Nullable CoreTransactionLogger logger, Supported supported)
Throws ForwardCompatibilityRequiresRetry if the 'thing' (transaction or cleanup attempt) should be retried Throws ForwardCompatibilityFailure else if the 'thing' should fast-fail
Copyright © 2024 Couchbase, Inc.. All rights reserved.