org.hibernate.search.backend.impl.lucene
Class LuceneBackendResources
java.lang.Object
org.hibernate.search.backend.impl.lucene.LuceneBackendResources
public final class LuceneBackendResources
- extends Object
Collects all resources needed to apply changes to one index,
and are reused across several WorkQueues.
- Author:
- Sanne Grinovero
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getQueueingExecutor
public ExecutorService getQueueingExecutor()
getWorkersExecutor
public ExecutorService getWorkersExecutor()
getMaxQueueLength
public int getMaxQueueLength()
getIndexName
public String getIndexName()
getVisitor
public LuceneWorkVisitor getVisitor()
getWorkspace
public AbstractWorkspaceImpl getWorkspace()
shutdown
public void shutdown()
getErrorHandler
public ErrorHandler getErrorHandler()
getParallelModificationLock
public Lock getParallelModificationLock()
getExclusiveModificationLock
public Lock getExclusiveModificationLock()
onTheFlyRebuild
public LuceneBackendResources onTheFlyRebuild()
- Creates a replacement for this same LuceneBackendResources:
reuses the existing locks and executors (which can't be reconfigured on the fly),
reuses the same Workspace and ErrorHandler, but will use a new LuceneWorkVisitor.
The LuceneWorkVisitor contains the strategies we use to apply update operations on the index,
and we might need to change them after the backend is started.
- Returns:
- the new LuceneBackendResources to replace this one.
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved