Interface TimerLocal
- All Known Implementing Classes:
TimerBean
public interface TimerLocal
Local view of the persistent representation of an EJB timer.
- Author:
- Kenneth Saks, Marina Vatkina
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(com.sun.ejb.containers.TimerPrimaryKey timerId) Cancel timer.voidcancelTimers(Collection<TimerState> timers) booleancheckStatus(String resourceJndiName, boolean checkDatabase) intcountActiveTimersByContainer(long containerId) intcountActiveTimersOwnedBy(String owner) intintcountActiveTimersOwnedByThisServerByContainer(long containerId) intcountCancelledTimersByContainer(long containerId) intintintcountCancelledTimersOwnedByThisServerByContainer(long containerId) intcountTimersByApplication(long applicationId) intcountTimersByContainer(long containerId) intcountTimersOwnedBy(String owner) String[]countTimersOwnedByServerIds(String[] serverIds) intintcountTimersOwnedByThisServerByContainer(long containerId) createTimer(String timerId, long containerId, long applicationId, String ownerId, Object timedObjectPrimaryKey, Date initialExpiration, long intervalDuration, com.sun.ejb.containers.EJBTimerSchedule schedule, jakarta.ejb.TimerConfig timerConfig) intdeleteTimersByApplication(long applicationId) intdeleteTimersByContainer(long containerId) findActiveTimerIdsByContainer(long containerId) findActiveTimerIdsByContainers(Collection<Long> containerIds) findActiveTimerIdsOwnedBy(String owner) findActiveTimerIdsOwnedByThisServerByContainer(long containerId) findActiveTimersByContainer(long containerId) findActiveTimersOwnedBy(String owner) findActiveTimersOwnedByThisServerByContainer(long containerId) findCancelledTimerIdsByContainer(long containerId) findCancelledTimerIdsOwnedByThisServerByContainer(long containerId) findCancelledTimersByContainer(long containerId) findCancelledTimersOwnedBy(String owner) findCancelledTimersOwnedByThisServerByContainer(long containerId) findTimer(com.sun.ejb.containers.TimerPrimaryKey timerId) findTimerIdsByContainer(long containerId) findTimerIdsOwnedBy(String owner) findTimerIdsOwnedByThisServerByContainer(long containerId) findTimersByContainer(long containerId) findTimersOwnedBy(String owner) findTimersOwnedByThisServerByContainer(long containerId) intmigrateTimers(String fromOwnerId, String toOwnerId) voidremove(com.sun.ejb.containers.TimerPrimaryKey timerId) void
-
Method Details
-
cancel
Cancel timer.- Throws:
Exception
-
cancelTimers
-
createTimer
TimerState createTimer(String timerId, long containerId, long applicationId, String ownerId, Object timedObjectPrimaryKey, Date initialExpiration, long intervalDuration, com.sun.ejb.containers.EJBTimerSchedule schedule, jakarta.ejb.TimerConfig timerConfig) throws jakarta.ejb.CreateException - Throws:
jakarta.ejb.CreateException
-
findTimer
-
remove
void remove(com.sun.ejb.containers.TimerPrimaryKey timerId) -
remove
-
findTimerIdsByContainer
-
findActiveTimerIdsByContainer
-
findActiveTimerIdsByContainers
-
findCancelledTimerIdsByContainer
-
findTimerIdsOwnedByThisServerByContainer
-
findActiveTimerIdsOwnedByThisServerByContainer
-
findCancelledTimerIdsOwnedByThisServerByContainer
-
findTimerIdsOwnedByThisServer
Set findTimerIdsOwnedByThisServer() -
findActiveTimerIdsOwnedByThisServer
Set findActiveTimerIdsOwnedByThisServer() -
findCancelledTimerIdsOwnedByThisServer
Set findCancelledTimerIdsOwnedByThisServer() -
findTimerIdsOwnedBy
-
findActiveTimerIdsOwnedBy
-
findCancelledTimerIdsOwnedBy
-
findTimersByContainer
-
findActiveTimersByContainer
-
findCancelledTimersByContainer
-
findTimersOwnedByThisServerByContainer
-
findActiveTimersOwnedByThisServerByContainer
-
findCancelledTimersOwnedByThisServerByContainer
-
findTimersOwnedByThisServer
Set findTimersOwnedByThisServer() -
findActiveTimersOwnedByThisServer
Set findActiveTimersOwnedByThisServer() -
findCancelledTimersOwnedByThisServer
Set findCancelledTimersOwnedByThisServer() -
findTimersOwnedBy
-
findActiveTimersOwnedBy
-
findCancelledTimersOwnedBy
-
countTimersByApplication
int countTimersByApplication(long applicationId) -
countTimersByContainer
int countTimersByContainer(long containerId) -
countActiveTimersByContainer
int countActiveTimersByContainer(long containerId) -
countCancelledTimersByContainer
int countCancelledTimersByContainer(long containerId) -
countTimersOwnedByThisServerByContainer
int countTimersOwnedByThisServerByContainer(long containerId) -
countActiveTimersOwnedByThisServerByContainer
int countActiveTimersOwnedByThisServerByContainer(long containerId) -
countCancelledTimersOwnedByThisServerByContainer
int countCancelledTimersOwnedByThisServerByContainer(long containerId) -
countTimersOwnedByThisServer
int countTimersOwnedByThisServer() -
countActiveTimersOwnedByThisServer
int countActiveTimersOwnedByThisServer() -
countCancelledTimersOwnedByThisServer
int countCancelledTimersOwnedByThisServer() -
countTimersOwnedBy
-
countActiveTimersOwnedBy
-
countCancelledTimersOwnedBy
-
countTimersOwnedByServerIds
-
checkStatus
-
migrateTimers
-
deleteTimersByContainer
int deleteTimersByContainer(long containerId) -
deleteTimersByApplication
int deleteTimersByApplication(long applicationId)
-