Class RedisLockProvider.Builder
java.lang.Object
net.javacrumbs.shedlock.provider.redis.spring.RedisLockProvider.Builder
- Enclosing class:
RedisLockProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()environment(String environment) safeUpdate(boolean safeUpdate)
-
Constructor Details
-
Builder
public Builder(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory) -
Builder
public Builder(org.springframework.data.redis.core.StringRedisTemplate redisTemplate)
-
-
Method Details
-
environment
-
keyPrefix
-
safeUpdate
- Parameters:
safeUpdate- When set to true and the lock is held for more than lockAtMostFor, and the lock is already held by somebody else, we don't release/extend the lock.
-
build
-