Interface ImmutableTimerMetaDataEntry<C>
- Type Parameters:
C- the timer context type
- All Superinterfaces:
Function<Instant,,Instant> TimerConfiguration,UnaryOperator<Instant>
- All Known Subinterfaces:
ImmutableIntervalTimerMetaDataEntry<C>,ImmutableScheduleTimerMetaDataEntry<C>,RemappableTimerMetaDataEntry<C>,TimerMetaDataEntry<C>
- All Known Implementing Classes:
AbstractTimerMetaDataEntry,IntervalTimerMetaDataEntry,MutableTimerMetaDataEntry,ScheduleTimerMetaDataEntry
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the context with which this timer was created.Supplies the time of the most recent timeout event of this timer, or null if there are no previous timeout eventsReturns the timeout matcher, used to locate the timeout method within the associated component.getType()Returns the type of this timerMethods inherited from interface org.wildfly.clustering.ejb.timer.TimerConfiguration
getStart
-
Method Details
-
getType
TimerType getType()Returns the type of this timer- Returns:
- the timer type
-
getContext
C getContext()Returns the context with which this timer was created.- Returns:
- the timer context
-
getTimeoutMatcher
Returns the timeout matcher, used to locate the timeout method within the associated component.- Returns:
- an timeout matcher
-
getLastTimeout
Duration getLastTimeout()Supplies the time of the most recent timeout event of this timer, or null if there are no previous timeout events- Returns:
- a reference to the time of the last timeout event, if one exists
-