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)
WorkQueueSynchronizationadd in interface WorkQueueSynchronizationwork - the work to addpublic boolean isConsumed()
WorkQueueSynchronizationisConsumed in interface WorkQueueSynchronizationtrue if the work has been consumedpublic void beforeCompletion()
beforeCompletion in interface Synchronizationpublic void afterCompletion(int i)
afterCompletion in interface Synchronizationpublic void flushWorks()
WorkQueueSynchronizationflushWorks in interface WorkQueueSynchronizationCopyright © 2006–2017 Hibernate. All rights reserved.