public class CaffeineDistributedLock extends AbstractDistributedLock
RETRY_TIMES, SLEEP_MILLIS, TIMEOUT_MILLIS
CaffeineDistributedLock()
boolean
lock(String key, long expire, int retryTimes, long sleepMillis)
releaseLock(String key)
lock, lock, lock, lock, lock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public CaffeineDistributedLock()
public boolean lock(String key, long expire, int retryTimes, long sleepMillis)
public boolean releaseLock(String key)
Copyright © 2020. All rights reserved.