Record Class DataLock

java.lang.Object
java.lang.Record
org.cryptomator.frontend.fuse.locks.DataLock
Record Components:
pathComponents - The path, split into path components
rwLock - The read-write-lock. We need to store a strong reference while in use, because LockManager works with weeak references
lock - Either the rwLock's read or its write lock
All Implemented Interfaces:
AutoCloseable

public record DataLock(@Unmodifiable List<String> pathComponents, ReadWriteLock rwLock, Lock lock) extends Record implements AutoCloseable
A data lock, either for reading (shared) or writing (exclusive).