Interface ImmutableTimerMetaData

  • All Known Subinterfaces:
    TimerMetaData

    public interface ImmutableTimerMetaData
    Describes the immutable metadata of a timer.
    Author:
    Paul Ferraro
    • Method Detail

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

        Optional<Instant> getLastTimout()
        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
      • getNextTimeout

        Optional<Instant> getNextTimeout()
        Returns the time of the next timeout event, or null if there are no future timeout events.
        Returns:
        the optional time of the next timeout event