Class TimerMetadata<T extends DigitalTwinBase>
- java.lang.Object
-
- com.scaleoutsoftware.digitaltwin.core.TimerMetadata<T>
-
- Type Parameters:
T
- the type of theDigitalTwinBase
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.
-
-
-
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.
-
-