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

    Modifier and Type
    Method
    Description
    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 events
    default Predicate<Method>
    Returns the timeout matcher, used to locate the timeout method within the associated component.
    Returns the type of this timer

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose

    Methods inherited from interface org.wildfly.clustering.ejb.timer.TimerConfiguration

    getStart
  • Method Details

    • 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