@Stability.Internal public class ClientRecord extends Object
ClientRecord isn't as contended as it appears. It's only read and written to by each client once per cleanup window (default for this is 60 seconds). It does remain a single point of failure, but with a sensible number of replicas this is unlikely to be a problem.
All writes are non-durable. If a write is rolled back then it's not critical, it will just take a little longer to find lost txns.
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_RECORD_DOC_ID |
static String |
FIELD_CLIENTS |
static String |
FIELD_OVERRIDE |
static String |
FIELD_OVERRIDE_ENABLED |
static String |
FIELD_OVERRIDE_EXPIRES |
static String |
FIELD_RECORDS |
| Constructor and Description |
|---|
ClientRecord(Core core) |
public static final String CLIENT_RECORD_DOC_ID
public static final String FIELD_RECORDS
public static final String FIELD_CLIENTS
public static final String FIELD_OVERRIDE
public static final String FIELD_OVERRIDE_ENABLED
public static final String FIELD_OVERRIDE_EXPIRES
public ClientRecord(Core core)
public Flux<Void> removeClientFromClientRecord(String clientUuid, Set<CollectionIdentifier> cleanupSet)
public Flux<Void> removeClientFromClientRecord(String clientUuid, Duration timeout, Set<CollectionIdentifier> collections)
public static ClientRecordDetails parseClientRecord(SubdocGetResponse clientRecord, String clientUuid)
public Mono<SubdocGetResponse> getClientRecord(CollectionIdentifier collection, @Nullable SpanWrapper span)
public Mono<ClientRecordDetails> processClient(String clientUuid, CollectionIdentifier collection, CoreTransactionsConfig config, @Nullable SpanWrapper pspan)
protected Mono<Integer> beforeCreateRecord(ClientRecord self)
protected Mono<Integer> beforeRemoveClient(ClientRecord self)
@Deprecated protected Mono<Integer> beforeUpdateCAS(ClientRecord self)
protected Mono<Integer> beforeGetRecord(ClientRecord self)
protected Mono<Integer> beforeUpdateRecord(ClientRecord self)
Copyright © 2024 Couchbase, Inc.. All rights reserved.