Interface TLcdLockUtil.Lock

All Superinterfaces:
AutoCloseable, Closeable
Enclosing class:
TLcdLockUtil

public static interface TLcdLockUtil.Lock extends Closeable
A Closeable that unlocks an object in its close() method. Use this with the Java 1.7 try-with-resource idiom (see example).

You must never implement this interface yourself, and only use it using try-with-resources.

In the future, this interface may be changed to extend AutoCloseable instead of Closeable.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Unlocks (read or write) the object it is associated with.
  • Method Details

    • close

      void close()
      Unlocks (read or write) the object it is associated with. Use this with the Java 1.7 try-with-resource idiom (see example).
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable