Package com.io7m.waxmill.locks

# Class WXMFileLock

java.lang.Object
com.io7m.waxmill.locks.WXMFileLock

All Implemented Interfaces:
  `java.lang.AutoCloseable`

    public final class WXMFileLock
    extends java.lang.Object
    implements java.lang.AutoCloseable

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `static WXMFileLock` | `acquire​(java.nio.file.Path lockFile)` |
  `void` | `close()` |
  `java.lang.String` | `toString()` |

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### acquire

    public static WXMFileLock acquire​(java.nio.file.Path lockFile) throws java.io.IOException
    Throws:
      `java.io.IOException`

  - ### close

    public void close() throws WXMException
    Specified by:
      `close` in interface `java.lang.AutoCloseable`
    Throws:
      `WXMException`

  - ### toString

    public java.lang.String toString()
    Overrides:
      `toString` in class `java.lang.Object`