public interface IndexManagerImplementor<D extends DocumentElement> extends AutoCloseable
This is the interface implemented by backends and provided to the engine.
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(IndexScopeBuilder builder) |
void |
close() |
IndexDocumentWorkExecutor<D> |
createDocumentWorkExecutor(SessionContextImplementor sessionContext,
DocumentCommitStrategy commitStrategy) |
IndexScopeBuilder |
createScopeBuilder(MappingContextImplementor mappingContext) |
IndexWorkExecutor |
createWorkExecutor(DetachedSessionContextImplementor sessionContext) |
IndexWorkPlan<D> |
createWorkPlan(SessionContextImplementor sessionContext,
DocumentCommitStrategy commitStrategy,
DocumentRefreshStrategy refreshStrategy) |
void |
start(IndexManagerStartContext context)
Start any resource necessary to operate the index manager at runtime.
|
IndexManager |
toAPI() |
void start(IndexManagerStartContext context)
Called by the engine once after bootstrap, after
BackendImplementor.start(BackendStartContext)
was called on the corresponding backend.
context - The start context.IndexManager toAPI()
IndexWorkPlan<D> createWorkPlan(SessionContextImplementor sessionContext, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy)
IndexDocumentWorkExecutor<D> createDocumentWorkExecutor(SessionContextImplementor sessionContext, DocumentCommitStrategy commitStrategy)
IndexWorkExecutor createWorkExecutor(DetachedSessionContextImplementor sessionContext)
IndexScopeBuilder createScopeBuilder(MappingContextImplementor mappingContext)
void addTo(IndexScopeBuilder builder)
void close()
close in interface AutoCloseableCopyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.