Interface ImmutableTimerMetaDataEntry<C>
-
- 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
public interface ImmutableTimerMetaDataEntry<C> extends TimerConfiguration, UnaryOperator<Instant>
- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CgetContext()Returns the context with which this timer was created.DurationgetLastTimeout()Supplies the time of the most recent timeout event of this timer, or null if there are no previous timeout eventsdefault Predicate<Method>getTimeoutMatcher()Returns the timeout matcher, used to locate the timeout method within the associated component.TimerTypegetType()Returns the type of this timer-
Methods inherited from interface org.wildfly.clustering.ejb.timer.TimerConfiguration
getStart
-
-
-
-
Method Detail
-
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
default Predicate<Method> 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
-
-