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 QueueingProcessorqueuePerTransaction - the map containing the queue for eeach transactionextendedIntegrator - the ExtendedSearchIntegratorpublic 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 status)
afterCompletion in interface Synchronizationpublic void flushWorks()
WorkQueueSynchronizationflushWorks in interface WorkQueueSynchronizationCopyright © 2006–2016 Hibernate. All rights reserved.