| Modifier and Type | Class and Description |
|---|---|
| private static class | FileLockTable.
A weak reference to a FileLock. |
| Modifier and Type | Field and Description |
|---|---|
| private final Channel | |
| private final FileKey | |
| private static final ConcurrentHashMap | |
| private final Set | |
| private static final ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| pack-priv | FileLockTable(Channel channel, FileDescriptor fd)
Creates a file lock table for a channel that is connected to the system-wide map of all file locks for the Java virtual machine. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv List | |
| private void | |
| private void | |
| pack-priv void |
| channel | back to summary |
|---|---|
| private final Channel channel | |
| fileKey | back to summary |
|---|---|
| private final FileKey fileKey | |
| lockMap | back to summary |
|---|---|
| private static final ConcurrentHashMap<FileKey, List<FileLockTable. | |
| locks | back to summary |
|---|---|
| private final Set<FileLock> locks | |
| queue | back to summary |
|---|---|
| private static final ReferenceQueue<FileLock> queue | |
| FileLockTable | back to summary |
|---|---|
| pack-priv FileLockTable(Channel channel, FileDescriptor fd) throws IOException Creates a file lock table for a channel that is connected to the system-wide map of all file locks for the Java virtual machine. | |
| add | back to summary |
|---|---|
| pack-priv void add(FileLock fl) throws OverlappingFileLockException | |
| checkList | back to summary |
|---|---|
| private void checkList(List<FileLockTable. | |
| remove | back to summary |
|---|---|
| pack-priv void remove(FileLock fl) | |
| removeAll | back to summary |
|---|---|
| pack-priv List | |
| removeKeyIfEmpty | back to summary |
|---|---|
| private void removeKeyIfEmpty(FileKey fk, List<FileLockTable. | |
| removeStaleEntries | back to summary |
|---|---|
| private void removeStaleEntries() | |
| replace | back to summary |
|---|---|
| pack-priv void replace(FileLock fromLock, FileLock toLock) | |
FileLockTable uses a list of file lock references to avoid keeping the FileLock (and FileChannel) alive.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| fileKey | back to summary |
|---|---|
| private final FileKey fileKey | |
| FileLockReference | back to summary |
|---|---|
| pack-priv FileLockReference(FileLock referent, ReferenceQueue<FileLock> queue, FileKey key) | |
| fileKey | back to summary |
|---|---|
| pack-priv FileKey fileKey() | |