Package org.wildfly.clustering.ejb.timer
Interface ImmutableTimerMetaData
-
- All Known Subinterfaces:
TimerMetaData
public interface ImmutableTimerMetaDataDescribes the immutable metadata of a timer.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C extends TimerConfiguration>
CgetConfiguration(Class<C> configurationClass)The configuration of this timerObjectgetContext()Returns the context with which this timer was created.Optional<Instant>getLastTimout()Returns the time of the most recent timeout event of this timer, or null if there are no previous timeout eventsOptional<Instant>getNextTimeout()Returns the time of the next timeout event, or null if there are no future timeout events.Predicate<Method>getTimeoutMatcher()Returns the timeout matcher, used to locate the timeout method within the associated component.TimerTypegetType()Returns the type of this timerbooleanisPersistent()Indicates whether or not this timer is persistent.
-
-
-
Method Detail
-
getType
TimerType getType()
Returns the type of this timer- Returns:
- the timer type
-
getContext
Object getContext()
Returns the context with which this timer was created.- Returns:
- the timer context
-
getTimeoutMatcher
Predicate<Method> getTimeoutMatcher()
Returns the timeout matcher, used to locate the timeout method within the associated component.- Returns:
- an timeout matcher
-
isPersistent
boolean isPersistent()
Indicates whether or not this timer is persistent.- Returns:
- true, if this is a persistent timer, false otherwise
-
getConfiguration
<C extends TimerConfiguration> C getConfiguration(Class<C> configurationClass)
The configuration of this timer- Type Parameters:
C- the timer configuration type- Parameters:
configurationClass- the configuration class- Returns:
- the timer configuration
-
getLastTimout
Optional<Instant> getLastTimout()
Returns the time of the most recent timeout event of this timer, or null if there are no previous timeout events- Returns:
- the optional time of the last timeout event
-
-