Class TimerMetadata<T extends DigitalTwinBase>

  • Type Parameters:
    T - the type of the DigitalTwinBase implementation.

    public class TimerMetadata<T extends DigitalTwinBase>
    extends java.lang.Object
    Metadata class for a timer.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimerMetadata​(TimerHandler<T> handler, TimerType timerType, long timerIntervalMs, int timerIdx)
      Constructs a timer metadata.
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getTimerHandlerClass()
      Retrieves the timer handler class name.
      int getTimerId()
      Retrieves the timer ID.
      long getTimerIntervalMs()
      Retrieves the timer interval.
      TimerType getTimerType()
      Retrieves the timer type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimerMetadata

        public TimerMetadata​(TimerHandler<T> handler,
                             TimerType timerType,
                             long timerIntervalMs,
                             int timerIdx)
        Constructs a timer metadata.
        Parameters:
        handler - the timer handler.
        timerType - the timer type.
        timerIntervalMs - the timer interval.
        timerIdx - the timer index.
    • Method Detail

      • getTimerHandlerClass

        public java.lang.String getTimerHandlerClass()
        Retrieves the timer handler class name.
        Returns:
        the timer handler class name.
      • getTimerType

        public TimerType getTimerType()
        Retrieves the timer type.
        Returns:
        the timer type.
      • getTimerIntervalMs

        public long getTimerIntervalMs()
        Retrieves the timer interval.
        Returns:
        the timer interval.
      • getTimerId

        public int getTimerId()
        Retrieves the timer ID.
        Returns:
        the timer ID.