@ThreadSafe public final class LockingScheme extends Object
Constructor and Description |
---|
LockingScheme(AlluxioURI path,
InodeTree.LockPattern desiredLockPattern,
boolean shouldSync)
Constructs a
LockingScheme . |
Modifier and Type | Method and Description |
---|---|
InodeTree.LockPattern |
getDesiredPattern() |
AlluxioURI |
getPath() |
InodeTree.LockPattern |
getPattern() |
boolean |
shouldSync() |
public LockingScheme(AlluxioURI path, InodeTree.LockPattern desiredLockPattern, boolean shouldSync)
LockingScheme
.path
- the path to lockdesiredLockPattern
- the desired lock modeshouldSync
- true if the path should be syncedpublic InodeTree.LockPattern getDesiredPattern()
public InodeTree.LockPattern getPattern()
public AlluxioURI getPath()
public boolean shouldSync()
Copyright © 2023. All Rights Reserved.