public final class LocalPathLock extends Object implements org.mule.extension.file.common.api.lock.PathLock
| Constructor and Description |
|---|
LocalPathLock(Path path,
OpenOption... openOptions)
Creates a new instance
|
public LocalPathLock(Path path, OpenOption... openOptions)
path - a Path pointing to the resource to be lockedopenOptions - the OpenOptions to be used when opening the FileChannelpublic boolean tryLock()
tryLock in interface org.mule.extension.file.common.api.lock.PathLockpublic boolean isLocked()
isLocked in interface org.mule.extension.file.common.api.lock.PathLockpublic void release()
release in interface org.mule.extension.file.common.api.lock.PathLockCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.