@Override public BuildContext overrideWriteLocker(LockFactory lockFactory) { checkNotNull(lockFactory, "lockFactory"); this.lockFactory = lockFactory; return this; }
@Override public BuildContext deleteOperationsExecutor(Executor executor) { checkNotNull(executor, "executor"); this.deleteExecutor = executor; return this; }
@Override public BuildContext overrideSegmentReadLocker(SegmentReadLocker srl) { checkNotNull(srl, "srl"); this.srl = srl; return this; }
@Override public BuildContext overrideSegmentReadLocker(SegmentReadLocker srl) { checkNotNull(srl, "srl"); this.srl = srl; return this; }
@Override public BuildContext overrideSegmentReadLocker(SegmentReadLocker srl) { checkNotNull(srl, "srl"); this.srl = srl; return this; }
@Override public BuildContext deleteOperationsExecutor(Executor executor) { checkNotNull(executor, "executor"); this.deleteExecutor = executor; return this; }
@Override public BuildContext overrideWriteLocker(LockFactory lockFactory) { checkNotNull(lockFactory, "lockFactory"); this.lockFactory = lockFactory; return this; }
@Override public BuildContext overrideWriteLocker(LockFactory lockFactory) { checkNotNull(lockFactory, "lockFactory"); this.lockFactory = lockFactory; return this; }
private static SegmentReadLocker makeDefaultSegmentReadLocker(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName) { checkNotNull(distLocksCache, "distLocksCache"); checkNotNull(indexName, "indexName"); return new DistributedSegmentReadLocker((Cache<Object, Integer>) distLocksCache, chunksCache, metadataCache, indexName); }
private static SegmentReadLocker makeDefaultSegmentReadLocker(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName, int affinitySegmentId) { checkNotNull(distLocksCache, "distLocksCache"); checkNotNull(indexName, "indexName"); return new DistributedSegmentReadLocker((Cache<Object, Integer>) distLocksCache, chunksCache, metadataCache, indexName, affinitySegmentId); }
private static SegmentReadLocker makeDefaultSegmentReadLocker(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName, int affinitySegmentId) { checkNotNull(distLocksCache, "distLocksCache"); checkNotNull(indexName, "indexName"); return new DistributedSegmentReadLocker((Cache<Object, Integer>) distLocksCache, chunksCache, metadataCache, indexName, affinitySegmentId); }
private static LockFactory makeDefaultLockFactory(Cache<?, ?> cache, String indexName) { checkNotNull(cache, "cache"); checkNotNull(indexName, "indexName"); return new BaseLockFactory(cache, indexName); }
public DirectoryBuilderImpl(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName) { this.metadataCache = checkValidConfiguration(checkNotNull(metadataCache, "metadataCache"), indexName); this.chunksCache = checkValidConfiguration(checkNotNull(chunksCache, "chunksCache"), indexName); this.distLocksCache = checkValidConfiguration(checkNotNull(distLocksCache, "distLocksCache"), indexName); this.indexName = checkNotNull(indexName, "indexName"); validateMetadataCache(metadataCache, indexName); }
public DirectoryBuilderImpl(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName) { this.metadataCache = checkValidConfiguration(checkNotNull(metadataCache, "metadataCache"), indexName); this.chunksCache = checkValidConfiguration(checkNotNull(chunksCache, "chunksCache"), indexName); this.distLocksCache = checkValidConfiguration(checkNotNull(distLocksCache, "distLocksCache"), indexName); this.indexName = checkNotNull(indexName, "indexName"); validateMetadataCache(metadataCache, indexName); }
public DirectoryBuilderImpl(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName) { this.metadataCache = checkValidConfiguration(checkNotNull(metadataCache, "metadataCache"), indexName); this.chunksCache = checkValidConfiguration(checkNotNull(chunksCache, "chunksCache"), indexName); this.distLocksCache = checkValidConfiguration(checkNotNull(distLocksCache, "distLocksCache"), indexName); this.indexName = checkNotNull(indexName, "indexName"); validateMetadataCache(metadataCache, indexName); }