release branch 0.0.4
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
<parent>
|
||||
<artifactId>lock</artifactId>
|
||||
<groupId>com.github.houbb</groupId>
|
||||
<version>0.0.3</version>
|
||||
<version>0.0.4</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>lock-api</artifactId>
|
||||
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
||||
@@ -30,4 +30,12 @@ public interface IOperator {
|
||||
*/
|
||||
boolean unlock(String lockKey, String requestId);
|
||||
|
||||
/**
|
||||
* 清空过期的锁
|
||||
*
|
||||
* 避免单个线程 unlock 失败,定时移除过期的锁。
|
||||
* @since 0.0.4
|
||||
*/
|
||||
void clearExpireLock();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user