Class TimerMetadata<T extends DigitalTwinBase>
- java.lang.Object
-
- com.scaleoutsoftware.digitaltwin.core.TimerMetadata<T>
-
- Type Parameters:
T- the type of theDigitalTwinBaseimplementation.
public class TimerMetadata<T extends DigitalTwinBase> extends java.lang.ObjectMetadata 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.StringgetTimerHandlerClass()Retrieves the timer handler class name.intgetTimerId()Retrieves the timer ID.longgetTimerIntervalMs()Retrieves the timer interval.TimerTypegetTimerType()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.
-
-