Class TimerMetadata<T extends DigitalTwinBase>

java.lang.Object
com.scaleoutsoftware.digitaltwin.core.TimerMetadata<T>
Type Parameters:
T - the type of the DigitalTwinBase implementation.

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

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

    • getTimerHandlerClass

      public 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.