m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java
diff options
context:
space:
mode:
authorMagdalena GrodziƄska <mag.grodzinska@gmail.com>2019-12-22 16:46:26 +0100
committerGitHub <noreply@github.com>2019-12-22 16:46:26 +0100
commit3fff4cef0bf33c7fa88dba92c81be7e402ec2bc9 (patch)
treecad537732585cc284bba9792dce6a05d3ff74a25 /src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java
parent0cff4e616cdf5f3ea4506e828c891baa4556b38c (diff)
parent0901262bb161249baf3559a20b114ffce49a1028 (diff)
Merge pull request #66 from m-chrzan/messages
Messages
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java
new file mode 100644
index 0000000..9743533
--- /dev/null
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java
@@ -0,0 +1,46 @@
+package pl.edu.mimuw.cloudatlas.agent.message;
+
+import java.util.TimerTask;
+
+public class TimerSchedulerMessage extends AgentMessage {
+ private String requestId;
+ private long delay;
+ private long baseTime;
+ private TimerTask task;
+
+ public TimerSchedulerMessage(String messageId, AgentModule destinationModule, long timestamp, String requestId, long delay, long baseTime, TimerTask task) {
+ super(messageId, destinationModule, timestamp);
+ this.requestId = requestId;
+ this.delay = delay;
+ this.baseTime = baseTime;
+ this.task = task;
+ }
+
+ public long getDelay() {
+ return delay;
+ }
+
+ public void setDelay(long delay) {
+ this.delay = delay;
+ }
+
+ public long getBaseTime() {
+ return baseTime;
+ }
+
+ public void setBaseTime(long baseTime) {
+ this.baseTime = baseTime;
+ }
+
+ public TimerTask getTask() {
+ return task;
+ }
+
+ public void setTask(TimerTask task) {
+ this.task = task;
+ }
+
+ public String getRequestId() { return requestId; }
+
+ public void setRequestId(String requestId) { this.requestId = requestId; }
+}