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