Interface TimerSynchronizationFactory<I>

Type Parameters:
I - the timer identifier type
All Known Implementing Classes:
DistributableTimerSynchronizationFactory

public interface TimerSynchronizationFactory<I>
Factory for creating Synchronization instances for a distributed timer service. Used to defer timer activation or cancellation until an active transaction is committed.
Author:
Paul Ferraro
  • Method Details

    • createActivateSynchronization

      jakarta.transaction.Synchronization createActivateSynchronization(Timer<I> timer, Supplier<org.wildfly.clustering.cache.batch.Batch> batchFactory, org.wildfly.clustering.cache.batch.SuspendedBatch suspendedBatch)
    • createCancelSynchronization

      jakarta.transaction.Synchronization createCancelSynchronization(Timer<I> timer, Supplier<org.wildfly.clustering.cache.batch.Batch> batchFactory, org.wildfly.clustering.cache.batch.SuspendedBatch suspendedBatch)
    • getActivateTask

      Consumer<Timer<I>> getActivateTask()
    • getCancelTask

      Consumer<Timer<I>> getCancelTask()