File tree 2 files changed +14
-0
lines changed
temporal-sdk/src/main/java/io/temporal
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,13 @@ public interface ActivityInfo {
66
66
*/
67
67
long getScheduledTimestamp ();
68
68
69
+ /**
70
+ * Time when the Activity Task (current attempt) was started.
71
+ *
72
+ * @return Timestamp in milliseconds (UNIX Epoch time)
73
+ */
74
+ long getStartedTimestamp ();
75
+
69
76
/**
70
77
* Time when the Activity Task (current attempt) was scheduled by the Temporal Server.
71
78
*
Original file line number Diff line number Diff line change @@ -82,6 +82,11 @@ public long getScheduledTimestamp() {
82
82
return Timestamps .toMillis (response .getScheduledTime ());
83
83
}
84
84
85
+ @ Override
86
+ public long getStartedTimestamp () {
87
+ return Timestamps .toMillis (response .getStartedTime ());
88
+ }
89
+
85
90
@ Override
86
91
public long getCurrentAttemptScheduledTimestamp () {
87
92
return Timestamps .toMillis (response .getCurrentAttemptScheduledTime ());
@@ -183,6 +188,8 @@ public String toString() {
183
188
+ getActivityType ()
184
189
+ ", scheduledTimestamp="
185
190
+ getScheduledTimestamp ()
191
+ + ", startedTimestamp="
192
+ + getStartedTimestamp ()
186
193
+ ", currentAttemptScheduledTimestamp="
187
194
+ getCurrentAttemptScheduledTimestamp ()
188
195
+ ", scheduleToCloseTimeout="
You can’t perform that action at this time.
0 commit comments