Package org.wildfly.clustering.ejb.timer
Interface TimerManager<I>
- Type Parameters:
I- the timer identifier type
- All Superinterfaces:
AutoCloseable,org.wildfly.clustering.server.manager.Manager<I>,org.wildfly.clustering.server.manager.ManagerConfiguration<I>,org.wildfly.clustering.server.manager.Service
public interface TimerManager<I>
extends org.wildfly.clustering.server.manager.Manager<I>, AutoCloseable
Manages creation, retrieval, and scheduling of timers.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createTimer(I id, IntervalTimerConfiguration config, Object context) createTimer(I id, ScheduleTimerConfiguration config, Object context) createTimer(I id, ScheduleTimerConfiguration config, Object context, Method method, int index) Returns exclusive access to the timer with the specified identifier.Returns non-exclusive access to the timer with the specified identifier.Methods inherited from interface org.wildfly.clustering.server.manager.Manager
getBatchFactoryMethods inherited from interface org.wildfly.clustering.server.manager.ManagerConfiguration
getIdentifierFactoryMethods inherited from interface org.wildfly.clustering.server.manager.Service
isStarted, start, stop
-
Method Details
-
createTimer
-
createTimer
-
createTimer
-
getTimer
Returns exclusive access to the timer with the specified identifier.- Parameters:
id- a timer identifier- Returns:
- the timer with the specified identifier, or null if no such timer exists
-
readTimer
Returns non-exclusive access to the timer with the specified identifier. This should only be used to read fixed (i.e. non-dynamic) timer meta data, as this would otherwise result in a dirty read.- Parameters:
id- a timer identifier- Returns:
- the timer with the specified identifier, or null if no such timer exists
-
getActiveTimers
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-