Class AbstractTimerMetaDataEntry<C>
java.lang.Object
org.wildfly.clustering.ejb.cache.timer.AbstractTimerMetaDataEntry<C>
- Type Parameters:
C- the timer context type
- All Implemented Interfaces:
Function<Instant,,Instant> UnaryOperator<Instant>,org.wildfly.clustering.cache.function.Remappable<RemappableTimerMetaDataEntry<C>,,Supplier<org.wildfly.clustering.server.offset.Offset<Duration>>> ImmutableTimerMetaDataEntry<C>,RemappableTimerMetaDataEntry<C>,TimerMetaDataEntry<C>,TimerConfiguration
- Direct Known Subclasses:
IntervalTimerMetaDataEntry,ScheduleTimerMetaDataEntry
public abstract class AbstractTimerMetaDataEntry<C>
extends Object
implements RemappableTimerMetaDataEntry<C>
The base timer metadata cache entry.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTimerMetaDataEntry(C context, Instant start) protectedAbstractTimerMetaDataEntry(C context, TimerConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RemappableTimerMetaDataEntry<C>clone()Returns 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()voidsetLastTimeout(Duration timeout) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.ejb.cache.timer.ImmutableTimerMetaDataEntry
getTimeoutMatcher, getType
-
Constructor Details
-
AbstractTimerMetaDataEntry
-
AbstractTimerMetaDataEntry
-
-
Method Details
-
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
-
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>
-
remap
public RemappableTimerMetaDataEntry<C> remap(Supplier<org.wildfly.clustering.server.offset.Offset<Duration>> lastTimeoutOffset) - Specified by:
remapin interfaceorg.wildfly.clustering.cache.function.Remappable<RemappableTimerMetaDataEntry<C>,Supplier<org.wildfly.clustering.server.offset.Offset<Duration>>>
-
clone
-