public abstract class AbstractDeadlineManager extends Object implements DeadlineManager
DeadlineManager to be implemented by concrete solutions for the
DeadlineManager. Provides functionality to perform a call to the DeadlineManager in the
UnitOfWork.Phase#PREPARE_COMMIT phase. This #runOnPrepareCommitOrNow(Runnable) functionality is required, as
the DeadlineManager schedules a Message which needs to happen on order with the
other messages published throughout the system.| Constructor and Description |
|---|
AbstractDeadlineManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
runOnPrepareCommitOrNow(Runnable deadlineCall)
Run a given
deadlineCall immediately, or schedule it for the UnitOfWork.Phase#PREPARE_COMMIT
phase if a UnitOfWork is active. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelAll, cancelSchedule, generateScheduleId, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleprotected void runOnPrepareCommitOrNow(Runnable deadlineCall)
deadlineCall immediately, or schedule it for the UnitOfWork.Phase#PREPARE_COMMIT
phase if a UnitOfWork is active. This is required as the DeadlineManager schedule message which we want to happen
on order with other message being handled.deadlineCall - a Runnable to be executed now or on prepare commit if a UnitOfWork is activeCopyright © 2010–2018. All rights reserved.