Package | Description |
---|---|
org.janusgraph.diskstorage.locking | |
org.janusgraph.diskstorage.locking.consistentkey |
Modifier and Type | Method and Description |
---|---|
Map<KeyColumn,S> |
LockerState.getLocksForTx(StoreTransaction tx) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractLocker.checkSingleLock(KeyColumn lockID,
S lockStatus,
StoreTransaction tx)
Try to verify that the lock identified by
lockID is already held
by tx . |
protected abstract void |
AbstractLocker.deleteSingleLock(KeyColumn lockID,
S lockStatus,
StoreTransaction tx)
Try to unlock/release/delete the lock identified by
lockID and
both held by and verified for tx . |
boolean |
LockerState.has(StoreTransaction tx,
KeyColumn kc) |
boolean |
LocalLockMediator.lock(KeyColumn kc,
T requester,
Instant expires)
Acquire the lock specified by
kc . |
void |
LockerState.release(StoreTransaction tx,
KeyColumn kc) |
void |
LockerState.take(StoreTransaction tx,
KeyColumn kc,
S ls) |
boolean |
LocalLockMediator.unlock(KeyColumn kc,
T requester)
Release the lock specified by
kc and which was previously
locked by requester , if it is possible to release it. |
void |
Locker.writeLock(KeyColumn lockID,
StoreTransaction tx)
Attempt to acquire/take/claim/write the lock named by
lockID . |
void |
AbstractLocker.writeLock(KeyColumn lockID,
StoreTransaction tx) |
protected abstract S |
AbstractLocker.writeSingleLock(KeyColumn lockID,
StoreTransaction tx)
Try to take/acquire/write/claim a lock uniquely identified within this
Locker by the lockID argument on behalf of tx . |
Constructor and Description |
---|
LockerState(ConcurrentMap<StoreTransaction,Map<KeyColumn,S>> locks) |
Modifier and Type | Method and Description |
---|---|
protected void |
ConsistentKeyLocker.checkSingleLock(KeyColumn kc,
ConsistentKeyLockStatus ls,
StoreTransaction tx) |
void |
LockCleanerService.clean(KeyColumn target,
Instant cutoff,
StoreTransaction tx) |
void |
StandardLockCleanerService.clean(KeyColumn target,
Instant cutoff,
StoreTransaction tx) |
protected void |
ConsistentKeyLocker.deleteSingleLock(KeyColumn kc,
ConsistentKeyLockStatus ls,
StoreTransaction tx) |
protected ConsistentKeyLockStatus |
ConsistentKeyLocker.writeSingleLock(KeyColumn lockID,
StoreTransaction txh)
Try to write a lock record remotely up to the configured number of
times.
|
Constructor and Description |
---|
StandardLockCleanerRunnable(KeyColumnValueStore store,
KeyColumn target,
StoreTransaction tx,
ConsistentKeyLockerSerializer serializer,
Instant cutoff,
TimestampProvider times) |
Copyright © 2012–2023. All rights reserved.