diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-06 16:17:18 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-06 16:32:11 +0100 |
commit | f8e0f371515a825ead0bf385105b461223c55e71 (patch) | |
tree | 7706fa07b50f6dba076fb3a32d449ae45cd5d918 /src/main/java/pl/edu/mimuw/cloudatlas | |
parent | ab9a470aa67ef414581145ad671e119d9edb86d9 (diff) |
Refactor UDUP message
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UDUPMessage.java | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UDUPMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UDUPMessage.java index 335d6fe..fa8d1fa 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UDUPMessage.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UDUPMessage.java @@ -7,23 +7,21 @@ import pl.edu.mimuw.cloudatlas.model.ValueContact; public class UDUPMessage extends AgentMessage { private ValueContact contact; private AgentMessage content; - private int retry; - private String conversationId; - public UDUPMessage(String messageId, long timestamp, ValueContact contact, AgentMessage content, int retry, String conversationId) { + public UDUPMessage(String messageId, long timestamp, ValueContact contact, AgentMessage content) { super(messageId, ModuleType.UDP, timestamp); this.contact = contact; this.content = content; - this.retry = retry; - this.conversationId = conversationId; } - public UDUPMessage(String messageId, ValueContact contact, AgentMessage content, int retry, String conversationId) { + public UDUPMessage(String messageId, ValueContact contact, AgentMessage content) { super(messageId, ModuleType.UDP); this.contact = contact; this.content = content; - this.retry = retry; - this.conversationId = conversationId; + } + + public UDUPMessage() { + super("", ModuleType.UDP); } @Override @@ -39,23 +37,9 @@ public class UDUPMessage extends AgentMessage { this.content = content; } - public int getRetry() { - return retry; - } - - public String getConversationId() { - return conversationId; - } - - public void setRetry(int retry) { this.retry = retry; } - public ValueContact getContact() { return contact; } public void setContact(ValueContact contact) { this.contact = contact; } - - public void setConversationId(String conversationId) { - this.conversationId = conversationId; - } } |