public class CaffeineDistributedLock extends Object implements DistributedLock
RETRY_TIMES, SLEEP_MILLIS, TIMEOUT_MILLIS| 构造器和说明 |
|---|
CaffeineDistributedLock() |
public boolean lock(String key, long expire, int retryTimes, long sleepMillis)
lock 在接口中 DistributedLockpublic boolean releaseLock(String key)
releaseLock 在接口中 DistributedLockCopyright © 2023. All rights reserved.