From 0901262bb161249baf3559a20b114ffce49a1028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magdalena=20Grodzi=C5=84ska?= Date: Sun, 22 Dec 2019 16:36:58 +0100 Subject: Separate requestId and messageId --- .../agent/message/TimerSchedulerMessage.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java') 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 index 76d6f8c..9743533 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java @@ -3,12 +3,14 @@ package pl.edu.mimuw.cloudatlas.agent.message; import java.util.TimerTask; public class TimerSchedulerMessage extends AgentMessage { - long delay; - long baseTime; - TimerTask task; - - public TimerSchedulerMessage(String requestId, AgentModule destinationModule, long timestamp, long delay, long baseTime, TimerTask task) { - super(requestId, destinationModule, timestamp); + 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; @@ -37,4 +39,8 @@ public class TimerSchedulerMessage extends AgentMessage { public void setTask(TimerTask task) { this.task = task; } + + public String getRequestId() { return requestId; } + + public void setRequestId(String requestId) { this.requestId = requestId; } } -- cgit v1.2.3