org.hibernate.search.backend.impl

## Interface WorkQueueSynchronization

- All Superinterfaces:
    Synchronization
  All Known Implementing Classes:
    InTransactionWorkQueueSynchronization, PostTransactionWorkQueueSynchronization

      public interface WorkQueueSynchronization
      extends Synchronization

  Represents the synchronization work done when a transaction is committed or rollbacked.
  Author:
    Emmanuel Bernard <emmanuel@hibernate.org>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(Work work)` Add some work to the transaction queue.
    `void` | `flushWorks()` Flush the queue by executing the workload
    `boolean` | `isConsumed()` Whether or not this queue has been consumed

    - ### Methods inherited from interface javax.transaction.Synchronization

      `afterCompletion, beforeCompletion`

- - ### Method Detail

    - #### add

          void add(Work work)

      Add some work to the transaction queue.
      Parameters:
        `work` - the work to add

    - #### isConsumed

          boolean isConsumed()

      Whether or not this queue has been consumed
      Returns:
        `true` if the work has been consumed

    - #### flushWorks

          void flushWorks()

      Flush the queue by executing the workload

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved