LuceneBackendResources(WorkerBuildContext context, DirectoryBasedIndexManager indexManager, Properties props, AbstractWorkspaceImpl workspace) {
this.indexName = indexManager.getIndexName();
this.errorHandler = context.getErrorHandler();
this.workspace = workspace;
this.visitor = new LuceneWorkVisitor( workspace );
this.maxQueueLength = CommonPropertiesParse.extractMaxQueueSize( indexName, props );
this.queueingExecutor = Executors.newFixedThreadPool( 1, "Index updates queue processor for index " + indexName, maxQueueLength );
this.workersExecutor = BackendFactory.buildWorkersExecutor( props, indexName );
ReentrantReadWriteLock readWriteLock = new ReentrantReadWriteLock();
readLock = readWriteLock.readLock();