public interface Worker
Modifier and Type | Method and Description |
---|---|
void |
close()
clean resources
This method can return exceptions
|
void |
flushWorks(TransactionContext transactionContext)
Flush any work queue.
|
void |
initialize(Properties props,
WorkerBuildContext context,
org.hibernate.search.backend.impl.QueueingProcessor queueingProcessor) |
void |
performWork(Work work,
TransactionContext transactionContext)
Declare a work to be done within a given transaction context
|
void performWork(Work work, TransactionContext transactionContext)
work
- the work to be executedtransactionContext
- transactional context informationvoid initialize(Properties props, WorkerBuildContext context, org.hibernate.search.backend.impl.QueueingProcessor queueingProcessor)
void close()
void flushWorks(TransactionContext transactionContext)
transactionContext
- the current transaction (context).Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.