Interface ImmutableTimerMetaData

All Superinterfaces:
TimeoutMetaData
All Known Subinterfaces:
TimerMetaData

public interface ImmutableTimerMetaData extends TimeoutMetaData
Describes the immutable metadata of a timer.
Author:
Paul Ferraro
  • 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

      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
    • getLastTimeout

      Optional<Instant> 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