public class PostTransactionWorkQueueSynchronization extends Object implements WorkQueueSynchronization
Constructor and Description |
---|
PostTransactionWorkQueueSynchronization(Object transactionIdentifier,
QueueingProcessor queueingProcessor,
ConcurrentMap<Object,WorkQueueSynchronization> queuePerTransaction,
ExtendedSearchIntegrator extendedIntegrator) |
Modifier and Type | Method and Description |
---|---|
void |
add(Work work)
Add some work to the transaction queue.
|
void |
afterCompletion(int i) |
void |
beforeCompletion() |
void |
flushWorks()
Flush the queue by executing the workload
|
boolean |
isConsumed()
Whether or not this queue has been consumed
|
public PostTransactionWorkQueueSynchronization(Object transactionIdentifier, QueueingProcessor queueingProcessor, ConcurrentMap<Object,WorkQueueSynchronization> queuePerTransaction, ExtendedSearchIntegrator extendedIntegrator)
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 i)
afterCompletion
in interface Synchronization
public void flushWorks()
WorkQueueSynchronization
flushWorks
in interface WorkQueueSynchronization
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved