Skip to content

Commit 04ec3d3

Browse files
authored
Merge pull request #12 from scaleoutsoftware/br-dev
Update TimerMetadata, Bump Version
2 parents 692960b + 4e917ac commit 04ec3d3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group 'com.scaleoutsoftware.digitaltwin'
6-
version '3.0.3'
6+
version '3.0.4'
77

88
sourceCompatibility = JavaVersion.VERSION_12
99

Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/TimerMetadata.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@
2525
public class TimerMetadata<T extends DigitalTwinBase> {
2626
final String timerHandler;
2727
final TimerType timerType;
28-
final Duration timerInterval;
28+
final long timerIntervalMs;
2929
final int timerId;
3030

3131
/**
3232
* Constructs a timer metadata.
3333
* @param handler the timer handler.
3434
* @param timerType the timer type.
35-
* @param timerInterval the timer interval.
35+
* @param timerIntervalMs the timer interval.
3636
* @param timerIdx the timer index.
3737
*/
38-
public TimerMetadata(TimerHandler<T> handler, TimerType timerType, Duration timerInterval, int timerIdx) {
39-
this.timerHandler = handler.getClass().getName();
40-
this.timerType = timerType;
41-
this.timerInterval = timerInterval;
42-
this.timerId = timerIdx;
38+
public TimerMetadata(TimerHandler<T> handler, TimerType timerType, long timerIntervalMs, int timerIdx) {
39+
this.timerHandler = handler.getClass().getName();
40+
this.timerType = timerType;
41+
this.timerIntervalMs = timerIntervalMs;
42+
this.timerId = timerIdx;
4343
}
4444

4545
/**
@@ -62,8 +62,8 @@ public TimerType getTimerType() {
6262
* Retrieves the timer interval.
6363
* @return the timer interval.
6464
*/
65-
public Duration getTimerInterval() {
66-
return timerInterval;
65+
public long getTimerIntervalMs() {
66+
return timerIntervalMs;
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)