Class TimerMetadata<T extends DigitalTwinBase<T>>

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

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

    • TimerMetadata

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

    • getTimerType

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

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

      public int getTimerSlot()
      Retrieves the timer ID.
      Returns:
      the timer ID.
    • getHandler

      public TimerHandler<T> getHandler()