/** * Used to obtain a {@code Lock} based on the {@code groupId} for concurrent operations * on the {@code MessageGroup}. * By default, an internal {@code DefaultLockRegistry} is used. * Use of a distributed {@link LockRegistry}, such as the {@code RedisLockRegistry}, * ensures only one instance of the aggregator will operate on a group concurrently. * @param lockRegistry the {@link LockRegistry} to use. * @return the endpoint spec. */ public S lockRegistry(LockRegistry lockRegistry) { Assert.notNull(lockRegistry, "'lockRegistry' must not be null."); this.handler.setLockRegistry(lockRegistry); return _this(); }
/** * Used to obtain a {@code Lock} based on the {@code groupId} for concurrent operations * on the {@code MessageGroup}. * By default, an internal {@code DefaultLockRegistry} is used. * Use of a distributed {@link LockRegistry}, such as the {@code RedisLockRegistry}, * ensures only one instance of the aggregator will operate on a group concurrently. * @param lockRegistry the {@link LockRegistry} to use. * @return the endpoint spec. */ public S lockRegistry(LockRegistry lockRegistry) { Assert.notNull(lockRegistry, "'lockRegistry' must not be null."); this.handler.setLockRegistry(lockRegistry); return _this(); }
/** * Used to obtain a {@code Lock} based on the {@code groupId} for concurrent operations * on the {@code MessageGroup}. * By default, an internal {@code DefaultLockRegistry} is used. * Use of a distributed {@link LockRegistry}, such as the {@code RedisLockRegistry}, * ensures only one instance of the aggregator will operate on a group concurrently. * @param lockRegistry the {@link LockRegistry} to use. * @return the endpoint spec. * @since 1.1 */ public S lockRegistry(LockRegistry lockRegistry) { Assert.notNull(lockRegistry, "'lockRegistry' must not be null."); this.handler.setLockRegistry(lockRegistry); return _this(); }
/** * Used to obtain a {@code Lock} based on the {@code groupId} for concurrent operations * on the {@code MessageGroup}. * By default, an internal {@code DefaultLockRegistry} is used. * Use of a distributed {@link LockRegistry}, such as the {@code RedisLockRegistry}, * ensures only one instance of the aggregator will operate on a group concurrently. * @param lockRegistry the {@link LockRegistry} to use. * @return the endpoint spec. * @since 1.1 */ public S lockRegistry(LockRegistry lockRegistry) { Assert.notNull(lockRegistry, "'lockRegistry' must not be null."); this.handler.setLockRegistry(lockRegistry); return _this(); }