类 SmartLock

java.lang.Object
cn.taketoday.util.concurrent.SmartLock
所有已实现的接口:
Serializable, AutoCloseable
直接已知子类:
SmartLock.WithCondition

public class SmartLock extends Object implements AutoCloseable, Serializable

Reentrant lock that can be used in a try-with-resources statement.

Typical usage:

 try (SmartLock lock = this.lock.lock())
 {
     // Something
 }
 
从以下版本开始:
4.0 2022/10/30 12:48
作者:
Harry Yang
另请参阅: