public interface Backend
Modifier and Type | Method and Description |
---|---|
default void |
close()
Used to shutdown and eventually release resources.
|
BackendQueueProcessor |
createQueueProcessor(IndexManager indexManager,
WorkerBuildContext context)
Called exactly once for each index manager using this backend.
|
default void |
initialize(Properties properties,
WorkerBuildContext context)
Used at startup, called once as first method.
|
default boolean |
isTransactional() |
default void initialize(Properties properties, WorkerBuildContext context)
properties
- all configuration propertiescontext
- context giving access to required meta datadefault void close()
The produced queue processors
are
guaranteed to be closed before this is called.
default boolean isTransactional()
true
if this backend is able to enlist in ongoing transactions.BackendQueueProcessor createQueueProcessor(IndexManager indexManager, WorkerBuildContext context)
indexManager
- the IndexManager
the BackendQueueProcessor
will point tocontext
- context giving access to required meta dataBackendQueueProcessor
that will send its works to the given index managerCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved