Modifier and Type | Method and Description |
---|---|
IllegalStateException |
EjbLogger.failToPersistTimer(TimerImpl timer)
Creates an exception indicating the timer is not persistent
|
IllegalStateException |
EjbLogger_$logger.failToPersistTimer(TimerImpl timer) |
IllegalStateException |
EjbLogger.invalidTimerNotCalendarBaseTimer(TimerImpl timer)
Creates an exception indicating the timer is not a calendar based timer"
|
IllegalStateException |
EjbLogger_$logger.invalidTimerNotCalendarBaseTimer(TimerImpl timer) |
void |
EjbLogger.nextExpirationIsNull(TimerImpl timer)
Logs an info message indicating the next expiration is null.
|
void |
EjbLogger_$logger.nextExpirationIsNull(TimerImpl timer) |
javax.ejb.NoMoreTimeoutsException |
EjbLogger.noMoreTimeoutForTimer(TimerImpl timer)
Creates an exception indicating no more timeouts for timer
|
javax.ejb.NoMoreTimeoutsException |
EjbLogger_$logger.noMoreTimeoutForTimer(TimerImpl timer) |
Modifier and Type | Class and Description |
---|---|
class |
TimerTask<T extends TimerImpl>
A timer task which will be invoked at appropriate intervals based on a
Timer
schedule. |
Modifier and Type | Class and Description |
---|---|
class |
CalendarTimer
Represents a
Timer which is created out a calendar expression |
Modifier and Type | Method and Description |
---|---|
TimerImpl |
TimerImpl.Builder.build(TimerServiceImpl timerService) |
TimerImpl |
TimerServiceImpl.getTimer(String timerId) |
TimerImpl |
TimerServiceImpl.getTimer(javax.ejb.TimerHandle handle)
Returns the
Timer corresponding to the passed TimerHandle |
TimerImpl |
TimerServiceImpl.loadAutoTimer(javax.ejb.ScheduleExpression schedule,
javax.ejb.TimerConfig timerConfig,
Method timeoutMethod) |
Modifier and Type | Method and Description |
---|---|
protected Date |
TimerTask.calculateNextTimeout(TimerImpl timer) |
protected Date |
CalendarTimerTask.calculateNextTimeout(TimerImpl timer) |
protected void |
TimerTask.callTimeout(TimerImpl timer) |
protected void |
CalendarTimerTask.callTimeout(TimerImpl timer) |
void |
TimedObjectInvokerImpl.callTimeout(TimerImpl timer) |
void |
TimedObjectInvokerImpl.callTimeout(TimerImpl timer,
Method timeoutMethod) |
protected void |
TimerServiceImpl.cancelTimeout(TimerImpl timer)
Cancels any scheduled
Future corresponding to the passed timer |
void |
TimerServiceImpl.cancelTimer(TimerImpl timer) |
void |
TimerServiceImpl.expireTimer(TimerImpl timer) |
protected void |
TimerTask.invokeBeanMethod(TimerImpl timer) |
protected void |
CalendarTimerTask.invokeBeanMethod(TimerImpl timer) |
void |
TimerServiceImpl.persistTimer(TimerImpl timer,
boolean newTimer)
Persists the passed
timer . |
protected void |
TimerTask.postTimeoutProcessing(TimerImpl timer)
After running the timer calculate the new state or expire the timer and persist it if changed.
|
protected void |
CalendarTimerTask.postTimeoutProcessing(TimerImpl timer) |
protected void |
TimerTask.retryTimeout(TimerImpl timer) |
protected void |
TimerServiceImpl.scheduleTimeout(TimerImpl timer,
boolean newTimer)
Creates and schedules a
TimerTask for the next timeout of the passed timer |
protected void |
TimerTask.scheduleTimeoutIfRequired(TimerImpl timer) |
protected void |
CalendarTimerTask.scheduleTimeoutIfRequired(TimerImpl timer) |
boolean |
TimerServiceImpl.shouldRun(TimerImpl timer)
Check if a persistent timer is already executed from a different instance
or should be executed.
|
protected void |
TimerServiceImpl.startTimer(TimerImpl timer)
Registers a timer with a transaction (if any in progress) and then moves
the timer to an active state, so that it becomes eligible for timeouts
|
Modifier and Type | Method and Description |
---|---|
List<TimerImpl> |
TimerPersistence.loadActiveTimers(String timedObjectId,
TimerServiceImpl timerService)
Load all active timers for the given object.
|
Modifier and Type | Method and Description |
---|---|
void |
TimerPersistence.addTimer(TimerImpl timer)
Called when a timer is being persisted
|
void |
TimerPersistence.persistTimer(TimerImpl timer)
Called when a timer is being persisted
|
boolean |
TimerPersistence.shouldRun(TimerImpl timer,
TransactionManager txManager)
Invoked before running a timer in order to determine if this node should run the timer.
|
void |
TimerPersistence.TimerChangeListener.timerAdded(TimerImpl timer)
Invoked when a timer is added to the underlying store.
|
Constructor and Description |
---|
TimerEntity(TimerImpl timer) |
Modifier and Type | Method and Description |
---|---|
List<TimerImpl> |
DatabaseTimerPersistence.loadActiveTimers(String timedObjectId,
TimerServiceImpl timerService) |
Modifier and Type | Method and Description |
---|---|
void |
DatabaseTimerPersistence.addTimer(TimerImpl timerEntity) |
void |
DatabaseTimerPersistence.persistTimer(TimerImpl timerEntity) |
boolean |
DatabaseTimerPersistence.shouldRun(TimerImpl timer,
TransactionManager tm) |
Modifier and Type | Method and Description |
---|---|
List<TimerImpl> |
FileTimerPersistence.loadActiveTimers(String timedObjectId,
TimerServiceImpl timerService) |
Modifier and Type | Method and Description |
---|---|
void |
FileTimerPersistence.addTimer(TimerImpl TimerImpl) |
void |
FileTimerPersistence.persistTimer(TimerImpl TimerImpl) |
boolean |
FileTimerPersistence.shouldRun(TimerImpl timer,
TransactionManager tm) |
Modifier and Type | Method and Description |
---|---|
void |
EjbTimerXmlParser_1_0.readElement(org.jboss.staxmapper.XMLExtendedStreamReader reader,
List<TimerImpl> timers) |
void |
EjbTimerXmlPersister.writeContent(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
List<TimerImpl> timers) |
Modifier and Type | Method and Description |
---|---|
void |
TimedObjectInvoker.callTimeout(TimerImpl timer)
Invokes the ejbTimeout method on the TimedObject with the given id.
|
void |
TimedObjectInvoker.callTimeout(TimerImpl timer,
Method timeoutMethod)
Responsible for invoking the timeout method on the target object.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.