Example usage for org.springframework.integration.support.locks DefaultLockRegistry DefaultLockRegistry

List of usage examples for org.springframework.integration.support.locks DefaultLockRegistry DefaultLockRegistry

Introduction

In this page you can find the example usage for org.springframework.integration.support.locks DefaultLockRegistry DefaultLockRegistry.

Prototype

public DefaultLockRegistry() 

Source Link

Document

Constructs a DefaultLockRegistry with the default mask 0xFF with 256 locks.

Usage

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());
}