Class MutableTimerMetaDataEntry<C>
java.lang.Object
org.wildfly.clustering.ejb.cache.timer.MutableTimerMetaDataEntry<C>
- Type Parameters:
C- the timer context type
- All Implemented Interfaces:
Function<Instant,,Instant> UnaryOperator<Instant>,ImmutableTimerMetaDataEntry<C>,TimerMetaDataEntry<C>,TimerConfiguration
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionMutableTimerMetaDataEntry(ImmutableTimerMetaDataEntry<C> entry, org.wildfly.clustering.server.offset.OffsetValue<Duration> lastTimeout) -
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 eventsgetStart()Returns the timeout matcher, used to locate the timeout method within the associated component.getType()Returns the type of this timervoidsetLastTimeout(Duration timeout)
-
Constructor Details
-
MutableTimerMetaDataEntry
public MutableTimerMetaDataEntry(ImmutableTimerMetaDataEntry<C> entry, org.wildfly.clustering.server.offset.OffsetValue<Duration> lastTimeout)
-
-
Method Details
-
getType
Description copied from interface:ImmutableTimerMetaDataEntryReturns the type of this timer- Specified by:
getTypein interfaceImmutableTimerMetaDataEntry<C>- Returns:
- the timer type
-
getContext
Description copied from interface:ImmutableTimerMetaDataEntryReturns the context with which this timer was created.- Specified by:
getContextin interfaceImmutableTimerMetaDataEntry<C>- Returns:
- the timer context
-
getStart
- Specified by:
getStartin interfaceTimerConfiguration
-
getTimeoutMatcher
Description copied from interface:ImmutableTimerMetaDataEntryReturns the timeout matcher, used to locate the timeout method within the associated component.- Specified by:
getTimeoutMatcherin interfaceImmutableTimerMetaDataEntry<C>- Returns:
- an timeout matcher
-
getLastTimeout
Description copied from interface:ImmutableTimerMetaDataEntrySupplies the time of the most recent timeout event of this timer, or null if there are no previous timeout events- Specified by:
getLastTimeoutin interfaceImmutableTimerMetaDataEntry<C>- Returns:
- a reference to the time of the last timeout event, if one exists
-
setLastTimeout
- Specified by:
setLastTimeoutin interfaceTimerMetaDataEntry<C>
-
apply
-