Package | Description |
---|---|
alluxio.collections | |
alluxio.concurrent | |
alluxio.fuse.lock | |
alluxio.master.file.meta | |
alluxio.resource |
Modifier and Type | Method and Description |
---|---|
LockResource |
LockPool.get(K key,
LockMode mode)
Locks the specified key in the specified mode.
|
RWLockResource |
LockPool.get(K key,
LockMode mode,
boolean useTryLock)
Locks the specified key in the specified mode.
|
Optional<RWLockResource> |
LockPool.tryGet(K key,
LockMode mode)
Attempts to take a lock on the given key.
|
Modifier and Type | Method and Description |
---|---|
static LockMode |
LockMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockMode[] |
LockMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
CloseableResource<Lock> |
FuseReadWriteLockManager.tryLock(String path,
LockMode mode)
Tries to lock the given poth with read/write mode.
|
Modifier and Type | Method and Description |
---|---|
LockMode |
SimpleInodeLockList.getLockMode() |
LockMode |
CompositeInodeLockList.getLockMode() |
LockMode |
InodeLockList.getLockMode() |
Modifier and Type | Method and Description |
---|---|
RWLockResource |
InodeLockManager.lockEdge(Edge edge,
LockMode mode,
boolean useTryLock)
Acquires an edge lock.
|
void |
SimpleInodeLockList.lockEdge(Inode lastInode,
String childName,
LockMode mode) |
void |
CompositeInodeLockList.lockEdge(Inode inode,
String childName,
LockMode mode) |
void |
InodeLockList.lockEdge(Inode inode,
String childName,
LockMode mode)
Locks an edge leading out of the last inode in the list.
|
void |
SimpleInodeLockList.lockInode(Inode inode,
LockMode mode) |
void |
CompositeInodeLockList.lockInode(Inode inode,
LockMode mode) |
void |
InodeLockList.lockInode(Inode inode,
LockMode mode)
Locks the given inode and adds it to the lock list.
|
RWLockResource |
InodeLockManager.lockInode(InodeView inode,
LockMode mode,
boolean useTryLock)
Acquires an inode lock.
|
RWLockResource |
InodeLockManager.lockInode(Long inodeId,
LockMode mode)
Acquires an inode lock using
Lock.lock() . |
void |
SimpleInodeLockList.lockRootEdge(LockMode mode) |
void |
CompositeInodeLockList.lockRootEdge(LockMode mode) |
void |
InodeLockList.lockRootEdge(LockMode mode)
Locks the root edge in the specified mode.
|
Optional<RWLockResource> |
InodeLockManager.tryLockEdge(Edge edge,
LockMode mode)
Attempts to acquire an edge lock.
|
Optional<RWLockResource> |
InodeLockManager.tryLockInode(Long inodeId,
LockMode mode)
Attempts to acquire an inode lock.
|
Constructor and Description |
---|
RefCountLockResource(ReentrantReadWriteLock lock,
LockMode mode,
boolean acquireLock,
AtomicInteger refCount,
boolean useTryLock)
Creates a new instance of
LockResource using the given lock and reference counter. |
RWLockResource(ReentrantReadWriteLock rwLock,
LockMode mode,
boolean acquireLock,
boolean useTryLock)
Creates a new instance of RW lock that will lock with the given mode.
|
Copyright © 2023. All Rights Reserved.