Package org.wildfly.clustering.ejb.timer
Interface ImmutableTimerMetaData
- All Superinterfaces:
TimeoutMetaData
- All Known Subinterfaces:
TimerMetaData
Describes the immutable metadata of a timer.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescription<C extends TimerConfiguration>
CgetConfiguration(Class<C> configurationClass) The configuration of this timerReturns the context with which this timer was created.Returns 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 timerbooleanIndicates whether or not this timer is persistent.Methods inherited from interface org.wildfly.clustering.ejb.timer.TimeoutMetaData
getNextTimeout
-
Method Details
-
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
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
The configuration of this timer- Type Parameters:
C- the timer configuration type- Parameters:
configurationClass- the configuration class- Returns:
- the timer configuration
-
getLastTimeout
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
-