Package com.luciad.util.concurrent
Interface TLcdLockUtil.Lock
- All Superinterfaces:
AutoCloseable
,Closeable
- Enclosing class:
TLcdLockUtil
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 TypeMethodDescriptionvoid
close()
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 (seeexample
).- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-