public class InTransactionWorkQueueSynchronization extends Object implements WorkQueueSynchronization
Constructor and Description |
---|
InTransactionWorkQueueSynchronization(Object transactionIdentifier,
QueueingProcessor queueingProcessor,
ConcurrentMap<Object,WorkQueueSynchronization> queuePerTransaction,
ExtendedSearchIntegrator extendedIntegrator)
In transaction work
|
Modifier and Type | Method and Description |
---|---|
void |
add(Work work)
Add some work to the transaction queue.
|
void |
afterCompletion(int status) |
void |
beforeCompletion() |
void |
flushWorks()
Flush the queue by executing the workload
|
boolean |
isConsumed()
Whether or not this queue has been consumed
|
public InTransactionWorkQueueSynchronization(Object transactionIdentifier, QueueingProcessor queueingProcessor, ConcurrentMap<Object,WorkQueueSynchronization> queuePerTransaction, ExtendedSearchIntegrator extendedIntegrator)
transactionIdentifier
- the identifier of the transactionqueueingProcessor
- the QueueingProcessor
queuePerTransaction
- the map containing the queue for eeach transactionextendedIntegrator
- the ExtendedSearchIntegrator
public void add(Work work)
WorkQueueSynchronization
add
in interface WorkQueueSynchronization
work
- the work to addpublic boolean isConsumed()
WorkQueueSynchronization
isConsumed
in interface WorkQueueSynchronization
true
if the work has been consumedpublic void beforeCompletion()
beforeCompletion
in interface Synchronization
public void afterCompletion(int status)
afterCompletion
in interface Synchronization
public void flushWorks()
WorkQueueSynchronization
flushWorks
in interface WorkQueueSynchronization
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved