public interface AbstractLockResolverClient
Modifier and Type | Field and Description |
---|---|
static long |
BIG_TXN_THRESHOLD
transaction involves keys exceed this threshold can be treated as `big transaction`.
|
static long |
RESOLVED_TXN_CACHE_SIZE
ResolvedCacheSize is max number of cached txn status.
|
Modifier and Type | Method and Description |
---|---|
static Lock |
extractLockFromKeyErr(Kvrpcpb.KeyError keyError,
RequestKeyCodec codec) |
static AbstractLockResolverClient |
getInstance(TiConfiguration conf,
TiRegion region,
TiStore store,
TikvGrpc.TikvBlockingStub blockingStub,
TikvGrpc.TikvFutureStub asyncStub,
ChannelFactory channelFactory,
RegionManager regionManager,
PDClient pdClient,
RegionStoreClient.RegionStoreClientBuilder clientBuilder) |
String |
getVersion() |
ResolveLockResult |
resolveLocks(BackOffer bo,
long callerStartTS,
List<Lock> locks,
boolean forWrite)
ResolveLocks tries to resolve Locks.
|
static final long RESOLVED_TXN_CACHE_SIZE
static final long BIG_TXN_THRESHOLD
static Lock extractLockFromKeyErr(Kvrpcpb.KeyError keyError, RequestKeyCodec codec)
static AbstractLockResolverClient getInstance(TiConfiguration conf, TiRegion region, TiStore store, TikvGrpc.TikvBlockingStub blockingStub, TikvGrpc.TikvFutureStub asyncStub, ChannelFactory channelFactory, RegionManager regionManager, PDClient pdClient, RegionStoreClient.RegionStoreClientBuilder clientBuilder)
String getVersion()
ResolveLockResult resolveLocks(BackOffer bo, long callerStartTS, List<Lock> locks, boolean forWrite)
bo
- callerStartTS
- locks
- forWrite
- Copyright © 2024 PingCAP. All rights reserved.