Interface TimerSynchronizationFactory<I>
-
- Type Parameters:
I- the timer identifier type
- All Known Implementing Classes:
DistributableTimerSynchronizationFactory
public interface TimerSynchronizationFactory<I>Factory for creatingSynchronizationinstances for a distributed timer service. Used to defer timer activation or cancellation until an active transaction is committed.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jakarta.transaction.SynchronizationcreateActivateSynchronization(Timer<I> timer, Batch batch, Batcher<Batch> batcher)jakarta.transaction.SynchronizationcreateCancelSynchronization(Timer<I> timer, Batch batch, Batcher<Batch> batcher)Consumer<Timer<I>>getActivateTask()Consumer<Timer<I>>getCancelTask()
-
-
-
Method Detail
-
createActivateSynchronization
jakarta.transaction.Synchronization createActivateSynchronization(Timer<I> timer, Batch batch, Batcher<Batch> batcher)
-
createCancelSynchronization
jakarta.transaction.Synchronization createCancelSynchronization(Timer<I> timer, Batch batch, Batcher<Batch> batcher)
-
-