Class TimerMetadata<T extends DigitalTwinBase>
java.lang.Object
com.scaleoutsoftware.digitaltwin.core.TimerMetadata<T>
- Type Parameters:
T
- the type of theDigitalTwinBase
implementation.
Metadata class for a timer.
-
Constructor Summary
ConstructorsConstructorDescriptionTimerMetadata
(TimerHandler<T> handler, TimerType timerType, long timerIntervalMs, int timerIdx) Constructs a timer metadata. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the timer handler class name.int
Retrieves the timer ID.long
Retrieves the timer interval.Retrieves the timer type.
-
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
Retrieves the timer handler class name.- Returns:
- the timer handler class name.
-
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.
-