forked from zlt2000/microservices-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
82 deletions.
There are no files selected for viewing
35 changes: 0 additions & 35 deletions
35
...mmons/zlt-common-core/src/main/java/com/central/common/config/LoginArgResolverConfig.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
zlt-commons/zlt-common-core/src/main/java/com/central/common/lock/ZLock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.central.common.lock; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* 锁对象抽象 | ||
* | ||
* @author zlt | ||
* @date 2020/7/28 | ||
* <p> | ||
* Blog: https://zlt2000.gitee.io | ||
* Github: https://github.com/zlt2000 | ||
*/ | ||
@AllArgsConstructor | ||
public class ZLock implements AutoCloseable { | ||
@Getter | ||
private final Object lock; | ||
|
||
private final DistributedLock locker; | ||
|
||
@Override | ||
public void close() throws Exception { | ||
locker.unlock(lock); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters