| 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 |
|---|---|
Set<TimerPrimaryKey> |
EJBTimerService.getNonPersistentActiveTimerIdsByThisServer() |
Set<TimerPrimaryKey> |
EJBTimerService.TimerCache.getNonPersistentActiveTimerIdsByThisServer() |
Set<TimerPrimaryKey> |
EJBTimerService.TimerCache.getNonPersistentActiveTimerIdsForContainer(long containerId_) |
Set<TimerPrimaryKey> |
EJBTimerService.TimerCache.getNonPersistentTimerIdsForContainer(long containerId_) |
protected Collection<TimerPrimaryKey> |
EJBTimerService.getTimerIds(Collection<Long> containerIds) |
protected Collection<TimerPrimaryKey> |
EJBTimerService.getTimerIds(long containerId,
Object timedObjectPrimaryKey)
Called by EJBTimerServiceWrapper when caller calls getTimers.
|
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 |
EJBTimerService.cancelNonPersistentTimer(TimerPrimaryKey timerId) |
protected void |
EJBTimerService.cancelTimer(TimerPrimaryKey timerId) |
void |
EJBTimerService.cancelTimerSynchronization(EJBContextImpl context_,
TimerPrimaryKey timerId,
long containerId,
String ownerId) |
protected void |
EJBTimerService.expungeTimer(TimerPrimaryKey timerId,
boolean removeTimerBean)
Remove all traces of a timer.
|
protected Serializable |
EJBTimerService.getInfo(TimerPrimaryKey timerId) |
protected Date |
EJBTimerService.getNextTimeout(TimerPrimaryKey timerId)
Return next planned timeout for this timer.
|
protected RuntimeTimerState |
EJBTimerService.getNonPersistentTimer(TimerPrimaryKey timerId) |
RuntimeTimerState |
EJBTimerService.TimerCache.getNonPersistentTimerState(TimerPrimaryKey timerId) |
protected EJBTimerSchedule |
EJBTimerService.getTimerSchedule(TimerPrimaryKey timerId)
Called by #getScheduleExpression and #isCalendarTimer
|
protected RuntimeTimerState |
EJBTimerService.getTimerState(TimerPrimaryKey timerId) |
RuntimeTimerState |
EJBTimerService.TimerCache.getTimerState(TimerPrimaryKey timerId) |
protected boolean |
EJBTimerService.isPersistent(TimerPrimaryKey timerId) |
protected boolean |
EJBTimerService.isValidTimerForThisServer(TimerPrimaryKey timerId,
RuntimeTimerState timerState)
Non-persistent timers are always valid because to be
executed on this server instance.
|
void |
EJBTimerService.TimerCache.removeTimer(TimerPrimaryKey timerId)
Remove a timer from the cache.
|
protected void |
EJBTimerService.resetLastExpiration(TimerPrimaryKey timerId,
RuntimeTimerState timerState)
Nothing special to do for non-persistent timers
|
protected void |
EJBTimerService.scheduleTask(TimerPrimaryKey timerId,
Date expiration) |
protected boolean |
EJBTimerService.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 |
TimerBean.cancel(TimerPrimaryKey timerId) |
void |
TimerLocal.cancel(TimerPrimaryKey timerId)
Cancel timer.
|
protected void |
PersistentEJBTimerService.cancelTimer(TimerPrimaryKey timerId) |
protected void |
PersistentEJBTimerService.expungeTimer(TimerPrimaryKey timerId,
boolean removeTimerBean) |
TimerState |
TimerBean.findTimer(TimerPrimaryKey timerId) |
TimerState |
TimerLocal.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 |
TimerBean.remove(TimerPrimaryKey timerId) |
void |
TimerLocal.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 |
TimerBean.remove(Set<TimerPrimaryKey> timerIds) |
void |
TimerLocal.remove(Set<TimerPrimaryKey> timerIds) |
Copyright © 2017. All rights reserved.