public class RedisLockBeanImpl extends AbstractLockBean implements RedisLockBean
| 构造器和说明 |
|---|
RedisLockBeanImpl(org.springframework.data.redis.connection.RedisConnectionFactory factory) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
lock(String key,
Duration max) |
boolean |
release(String key) |
afterPropertiesSet, generateLockKey, generateLockValue, getMaxOfDefault, setDefaultMax, setPrefix, setSuffixclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlockpublic RedisLockBeanImpl(org.springframework.data.redis.connection.RedisConnectionFactory factory)
public boolean lock(String key, Duration max)
lock 在接口中 RedisLockBeanpublic boolean release(String key)
release 在接口中 RedisLockBeanCopyright © 2020. All rights reserved.