Class TimerMetadata<T extends DigitalTwinBase<T>>
java.lang.Object
com.scaleoutsoftware.digitaltwin.abstractions.TimerMetadata<T>
- Type Parameters:
T- the type of theDigitalTwinBaseimplementation.
Metadata class for a timer.
-
Constructor Summary
ConstructorsConstructorDescriptionTimerMetadata(TimerHandler<T> handlerClass, TimerType timerType, long timerIntervalMs, int timerSlot) Constructs a timer metadata. -
Method Summary
Modifier and TypeMethodDescriptionlongRetrieves the timer interval.intRetrieves the timer ID.Retrieves the timer type.
-
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
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
-