Class AutoCloseableLock

java.lang.Object
org.testng.internal.AutoCloseableLock
All Implemented Interfaces:
Closeable, AutoCloseable

public final class AutoCloseableLock extends Object implements Closeable
A simple abstraction over ReentrantLock that can be used in conjunction with try..resources constructs.
  • Constructor Details

    • AutoCloseableLock

      public AutoCloseableLock()
  • Method Details