FileLock
Class FileLock
- java.lang.Object
-
- java.nio.channels.FileLock
- All Implemented Interfaces:
- AutoCloseable
public abstract class FileLock extends Object implements AutoCloseable
A token representing a lock on a region of a file.
A file-lock object is created each time a lock is acquired on a file via one of the lock
or tryLock
methods of the FileChannel
class, or the 登录查看完整内容