List of usage examples for org.springframework.integration.support.locks DefaultLockRegistry DefaultLockRegistry
public DefaultLockRegistry()
From source file:org.springframework.integration.redis.util.RedisLockRegistry.java
/** * Constructs a lock registry with the supplied lock expiration and a default * local {@link DefaultLockRegistry}.//w ww .j ava2s . co m * @param connectionFactory The connection factory. * @param registryKey The key prefix for locks. * @param expireAfter The expiration in milliseconds. */ public RedisLockRegistry(RedisConnectionFactory connectionFactory, String registryKey, long expireAfter) { this(connectionFactory, registryKey, expireAfter, new DefaultLockRegistry()); }