Lines Matching defs:channel
44 * channel that was used to acquire it, or by the termination of the Java
64 * <p> A file-lock object records the file channel upon whose file the lock is
101 * <p> On some systems, closing a channel releases all locks held by the Java
103 * acquired via that channel or via another channel open on the same file. It
104 * is strongly recommended that, within a program, a unique channel be used to
122 private final Channel channel;
130 * @param channel
131 * The file channel upon whose file this lock is held
148 protected FileLock(FileChannel channel,
151 Objects.requireNonNull(channel, "Null channel");
158 this.channel = channel;
167 * @param channel
168 * The channel upon whose file this lock is held
187 protected FileLock(AsynchronousFileChannel channel,
190 Objects.requireNonNull(channel, "Null channel");
197 this.channel = channel;
204 * Returns the file channel upon whose file this lock was acquired.
209 * @return The file channel, or {@code null} if the file lock was not
210 * acquired by a file channel.
212 public final FileChannel channel() {
213 return (channel instanceof FileChannel) ? (FileChannel)channel : null;
217 * Returns the channel upon whose file this lock was acquired.
219 * @return The channel upon whose file this lock was acquired.
224 return channel;
287 * file channel is closed, whichever comes first. </p>
301 * If the channel that was used to acquire this lock