public ProcessingBucketGroup(final ClusterInfo cluster, final AsyncConfig config, final StealPolicy<I> policy) { this.cluster = ClusterInfoUtil.determineDsoClusterInstance(cluster); this.config = config; this.policy = policy; this.buckets = newMap(); this.groupLock = new TerracottaReadWriteLock(config.isSynchronousWrite()); this.groupWriteLock = groupLock.writeLock(); this.groupReadLock = groupLock.readLock(); }
public ProcessingBucketGroup(final ClusterInfo cluster, final AsyncConfig config, final StealPolicy<I> policy) { this.cluster = ClusterInfoUtil.determineDsoClusterInstance(cluster); this.config = config; this.policy = policy; this.buckets = newMap(); this.groupLock = new TerracottaReadWriteLock(config.isSynchronousWrite()); this.groupWriteLock = groupLock.writeLock(); this.groupReadLock = groupLock.readLock(); }
public ProcessingBucketGroup(final ClusterInfo cluster, final AsyncConfig config, final StealPolicy<I> policy) { this.cluster = ClusterInfoUtil.determineDsoClusterInstance(cluster); this.config = config; this.policy = policy; this.buckets = newMap(); this.groupLock = new TerracottaReadWriteLock(config.isSynchronousWrite()); this.groupWriteLock = groupLock.writeLock(); this.groupReadLock = groupLock.readLock(); }