Lines Matching refs:FileLockReference
88 private static class FileLockReference extends WeakReference<FileLock> {
91 FileLockReference(FileLock referent,
106 private static ConcurrentHashMap<FileKey, List<FileLockReference>> lockMap =
107 new ConcurrentHashMap<FileKey, List<FileLockReference>>();
125 List<FileLockReference> list = lockMap.get(fileKey);
131 list = new ArrayList<FileLockReference>(2);
132 List<FileLockReference> prev;
137 list.add(new FileLockReference(fl, queue, fileKey));
150 List<FileLockReference> current = lockMap.get(fileKey);
153 list.add(new FileLockReference(fl, queue, fileKey));
165 private void removeKeyIfEmpty(FileKey fk, List<FileLockReference> list) {
178 List<FileLockReference> list = lockMap.get(fileKey);
184 FileLockReference ref = list.get(index);
200 List<FileLockReference> list = lockMap.get(fileKey);
205 FileLockReference ref = list.get(index);
231 List<FileLockReference> list = lockMap.get(fileKey);
236 FileLockReference ref = list.get(index);
240 list.set(index, new FileLockReference(toLock, queue, fileKey));
248 private void checkList(List<FileLockReference> list, long position, long size)
252 for (FileLockReference ref: list) {
261 FileLockReference ref;
262 while ((ref = (FileLockReference)queue.poll()) != null) {
264 List<FileLockReference> list = lockMap.get(fk);