Package | Description |
---|---|
com.sun.ejb.containers | |
fish.payara.ejb.timer.hazelcast | |
org.glassfish.ejb.persistent.timer |
Modifier and Type | Field and Description |
---|---|
protected Map<TimerPrimaryKey,Method> |
BaseContainer.scheduleIds |
Modifier and Type | Method and Description |
---|---|
TimerPrimaryKey |
RuntimeTimerState.getTimerId() |
Modifier and Type | Method and Description |
---|---|
abstract Set<TimerPrimaryKey> |
EJBTimerService.getNonPersistentActiveTimerIdsByThisServer() |
Set<TimerPrimaryKey> |
EJBTimerService.TimerCache.getNonPersistentActiveTimerIdsByThisServer() |
Set<TimerPrimaryKey> |
NonPersistentEJBTimerService.getNonPersistentActiveTimerIdsByThisServer() |
Set<TimerPrimaryKey> |
EJBTimerService.TimerCache.getNonPersistentActiveTimerIdsForContainer(long containerId_) |
Set<TimerPrimaryKey> |
EJBTimerService.TimerCache.getNonPersistentTimerIdsForContainer(long containerId_) |
protected abstract Collection<TimerPrimaryKey> |
EJBTimerService.getTimerIds(Collection<Long> containerIds) |
protected Collection<TimerPrimaryKey> |
NonPersistentEJBTimerService.getTimerIds(Collection<Long> containerIds) |
protected abstract Collection<TimerPrimaryKey> |
EJBTimerService.getTimerIds(long containerId,
Object timedObjectPrimaryKey)
Called by EJBTimerServiceWrapper when caller calls getTimers.
|
protected Collection<TimerPrimaryKey> |
NonPersistentEJBTimerService.getTimerIds(long containerId,
Object timedObjectPrimaryKey) |
protected Map<TimerPrimaryKey,Method> |
EJBTimerService.recoverAndCreateSchedules(long containerId,
long applicationId,
Map<Method,List<ScheduledTimerDescriptor>> schedules,
boolean deploy)
Create automatic non-persistent timers defined by the @Schedule
annotation on the EJB bean.
|
Modifier and Type | Method and Description |
---|---|
protected void |
EJBTimerService._createTimer(TimerPrimaryKey timerId,
long containerId,
long applicationId,
Object timedObjectPrimaryKey,
String server_name,
Date initialExpiration,
long intervalDuration,
EJBTimerSchedule schedule,
javax.ejb.TimerConfig timerConfig) |
void |
EJBTimerService.TimerCache.addTimer(TimerPrimaryKey timerId,
RuntimeTimerState timerState) |
protected void |
EJBTimerService.addToSchedules(long containerId,
TimerPrimaryKey timerId,
EJBTimerSchedule ts) |
protected boolean |
NonPersistentEJBTimerService.cancelNonPersistentTimer(TimerPrimaryKey timerId) |
protected abstract void |
EJBTimerService.cancelTimer(TimerPrimaryKey timerId) |
protected void |
NonPersistentEJBTimerService.cancelTimer(TimerPrimaryKey timerId) |
void |
EJBTimerService.cancelTimerSynchronization(EJBContextImpl context_,
TimerPrimaryKey timerId,
long containerId,
String ownerId) |
protected void |
EJBTimerService.cancelTimerSynchronization(EJBContextImpl context_,
TimerPrimaryKey timerId,
long containerId,
String ownerId,
boolean persistent) |
protected void |
EJBTimerService.expungeTimer(TimerPrimaryKey timerId,
boolean removeTimerBean)
Remove all traces of a timer.
|
protected abstract Serializable |
EJBTimerService.getInfo(TimerPrimaryKey timerId) |
protected Serializable |
NonPersistentEJBTimerService.getInfo(TimerPrimaryKey timerId) |
protected abstract Date |
EJBTimerService.getNextTimeout(TimerPrimaryKey timerId)
Return next planned timeout for this timer.We have a fair amount of
leeway regarding the consistency of this information.We should strive to
detect the case where the timer no longer exists.However, since the
current timer instance may not even own this timer, it's difficult to
know the exact time of delivery in another server instance.
|
protected Date |
NonPersistentEJBTimerService.getNextTimeout(TimerPrimaryKey timerId) |
protected RuntimeTimerState |
NonPersistentEJBTimerService.getNonPersistentTimer(TimerPrimaryKey timerId) |
RuntimeTimerState |
EJBTimerService.TimerCache.getNonPersistentTimerState(TimerPrimaryKey timerId) |
protected abstract EJBTimerSchedule |
EJBTimerService.getTimerSchedule(TimerPrimaryKey timerId)
Called by #getScheduleExpression and #isCalendarTimer
|
protected EJBTimerSchedule |
NonPersistentEJBTimerService.getTimerSchedule(TimerPrimaryKey timerId) |
protected RuntimeTimerState |
EJBTimerService.getTimerState(TimerPrimaryKey timerId) |
RuntimeTimerState |
EJBTimerService.TimerCache.getTimerState(TimerPrimaryKey timerId) |
protected boolean |
NonPersistentEJBTimerService.isNonpersistent(TimerPrimaryKey timerId)
Check if timerId represents nonpersistent timer.
|
protected abstract boolean |
EJBTimerService.isPersistent(TimerPrimaryKey timerId) |
protected boolean |
NonPersistentEJBTimerService.isPersistent(TimerPrimaryKey timerId) |
protected abstract boolean |
EJBTimerService.isValidTimerForThisServer(TimerPrimaryKey timerId,
RuntimeTimerState timerState)
Non-persistent timers are always valid because to be executed on this
server instance.
|
protected boolean |
NonPersistentEJBTimerService.isValidTimerForThisServer(TimerPrimaryKey timerId,
RuntimeTimerState timerState) |
void |
EJBTimerService.TimerCache.removeTimer(TimerPrimaryKey timerId)
Remove a timer from the cache.
|
protected abstract void |
EJBTimerService.resetLastExpiration(TimerPrimaryKey timerId,
RuntimeTimerState timerState)
Nothing special to do for non-persistent timers
|
protected void |
NonPersistentEJBTimerService.resetLastExpiration(TimerPrimaryKey timerId,
RuntimeTimerState timerState) |
protected void |
EJBTimerService.scheduleTask(TimerPrimaryKey timerId,
Date expiration) |
protected abstract boolean |
EJBTimerService.timerExists(TimerPrimaryKey timerId) |
protected boolean |
NonPersistentEJBTimerService.timerExists(TimerPrimaryKey timerId) |
Modifier and Type | Method and Description |
---|---|
protected void |
EJBTimerService.createSchedules(long containerId,
long applicationId,
Map<?,List<ScheduledTimerDescriptor>> schedules,
Map<TimerPrimaryKey,Method> result,
String server_name,
boolean startTimers,
boolean deploy)
Create automatic timers defined by the @Schedule annotation on the EJB bean.
|
protected void |
EJBTimerService.stopTimers(Set<TimerPrimaryKey> timerIds) |
Constructor and Description |
---|
RuntimeTimerState(TimerPrimaryKey timerId,
Date initialExpiration,
long intervalDuration,
BaseContainer container,
Object timedObjectPkey,
EJBTimerSchedule schedule,
Serializable info,
boolean persistent) |
Modifier and Type | Method and Description |
---|---|
TimerPrimaryKey |
HZTimer.getKey() |
Modifier and Type | Method and Description |
---|---|
protected Collection<TimerPrimaryKey> |
HazelcastTimerStore.getTimerIds(Collection<Long> containerIds) |
protected Collection<TimerPrimaryKey> |
HazelcastTimerStore.getTimerIds(long containerId,
Object timedObjectPrimaryKey) |
protected Map<TimerPrimaryKey,Method> |
HazelcastTimerStore.recoverAndCreateSchedules(long containerId,
long applicationId,
Map<Method,List<ScheduledTimerDescriptor>> schedules,
boolean deploy) |
Modifier and Type | Method and Description |
---|---|
protected void |
HazelcastTimerStore._createTimer(TimerPrimaryKey timerId,
long containerId,
long applicationId,
Object timedObjectPrimaryKey,
String server_name,
Date initialExpiration,
long intervalDuration,
EJBTimerSchedule schedule,
javax.ejb.TimerConfig timerConfig) |
protected void |
HazelcastTimerStore.cancelTimer(TimerPrimaryKey timerId) |
protected void |
HazelcastTimerStore.expungeTimer(TimerPrimaryKey timerId,
boolean removeTimerBean) |
protected Serializable |
HazelcastTimerStore.getInfo(TimerPrimaryKey timerId) |
protected Date |
HazelcastTimerStore.getNextTimeout(TimerPrimaryKey timerId) |
protected EJBTimerSchedule |
HazelcastTimerStore.getTimerSchedule(TimerPrimaryKey timerId) |
protected boolean |
HazelcastTimerStore.isPersistent(TimerPrimaryKey timerId) |
protected boolean |
HazelcastTimerStore.isValidTimerForThisServer(TimerPrimaryKey timerId,
RuntimeTimerState timerState) |
protected void |
HazelcastTimerStore.resetLastExpiration(TimerPrimaryKey timerId,
RuntimeTimerState timerState) |
protected boolean |
HazelcastTimerStore.timerExists(TimerPrimaryKey timerId) |
Constructor and Description |
---|
HZTimer(TimerPrimaryKey timerId,
long containerId,
long applicationId,
Object timedObjectPrimaryKey,
String hzMemberName,
String ownerId,
Date initialExpiration,
long intervalDuration,
EJBTimerSchedule schedule,
javax.ejb.TimerConfig timerConfig) |
Modifier and Type | Method and Description |
---|---|
protected Collection<TimerPrimaryKey> |
PersistentEJBTimerService.getTimerIds(Collection<Long> containerIds)
Return the Ids of active timers owned by EJBs.
|
protected Collection<TimerPrimaryKey> |
PersistentEJBTimerService.getTimerIds(long containerId,
Object timedObjectPrimaryKey)
Use database query to retrieve persistrent timer ids of all active
timers.
|
protected Map<TimerPrimaryKey,Method> |
PersistentEJBTimerService.recoverAndCreateSchedules(long containerId,
long applicationId,
Map<Method,List<ScheduledTimerDescriptor>> schedules,
boolean deploy)
Recover pre-existing timers associated with the Container identified
by the containerId, and create automatic timers defined by the @Schedule
annotation on the EJB bean.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PersistentEJBTimerService._createTimer(TimerPrimaryKey timerId,
long containerId,
long applicationId,
Object timedObjectPrimaryKey,
String server_name,
Date initialExpiration,
long intervalDuration,
EJBTimerSchedule schedule,
javax.ejb.TimerConfig timerConfig)
Create persistent timer.
|
void |
TimerLocal.cancel(TimerPrimaryKey timerId)
Cancel timer.
|
void |
TimerBean.cancel(TimerPrimaryKey timerId) |
protected void |
PersistentEJBTimerService.cancelTimer(TimerPrimaryKey timerId) |
protected void |
PersistentEJBTimerService.expungeTimer(TimerPrimaryKey timerId,
boolean removeTimerBean) |
TimerState |
TimerLocal.findTimer(TimerPrimaryKey timerId) |
TimerState |
TimerBean.findTimer(TimerPrimaryKey timerId) |
protected Serializable |
PersistentEJBTimerService.getInfo(TimerPrimaryKey timerId) |
protected Date |
PersistentEJBTimerService.getNextTimeout(TimerPrimaryKey timerId) |
protected EJBTimerSchedule |
PersistentEJBTimerService.getTimerSchedule(TimerPrimaryKey timerId) |
protected boolean |
PersistentEJBTimerService.isPersistent(TimerPrimaryKey timerId) |
protected boolean |
PersistentEJBTimerService.isValidTimerForThisServer(TimerPrimaryKey timerId,
RuntimeTimerState timerState)
Persistent timers can be cancelled from another server instance
|
void |
TimerLocal.remove(TimerPrimaryKey timerId) |
void |
TimerBean.remove(TimerPrimaryKey timerId) |
protected void |
PersistentEJBTimerService.resetLastExpiration(TimerPrimaryKey timerId,
RuntimeTimerState timerState)
Update database for a persistent timer
|
protected boolean |
PersistentEJBTimerService.timerExists(TimerPrimaryKey timerId) |
Modifier and Type | Method and Description |
---|---|
void |
TimerLocal.remove(Set<TimerPrimaryKey> timerIds) |
void |
TimerBean.remove(Set<TimerPrimaryKey> timerIds) |
Copyright © 2020. All rights reserved.