m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java
blob: 1d7c0c60d1127046edaea164dbc3abd979e93652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package pl.edu.mimuw.cloudatlas.agent.messages;

import pl.edu.mimuw.cloudatlas.model.ValueTime;

import java.net.InetAddress;

public class RemoteGossipGirlMessage extends GossipGirlMessage {
    private ValueTime sentTimestamp;
    private ValueTime receivedTimestamp;
    private InetAddress senderAddress;

    public RemoteGossipGirlMessage(String messageId, long timestamp, Type type) {
        super(messageId, timestamp, type);
    }

    public RemoteGossipGirlMessage() {};

    public void setSentTimestamp(ValueTime sentTimestamp) {
        this.sentTimestamp = sentTimestamp;
    }

    public void setReceivedTimestamp(ValueTime receivedTimestamp) {
        this.receivedTimestamp = receivedTimestamp;
    }

    public ValueTime getSentTimestamp() {
        return sentTimestamp;
    }

    public ValueTime getReceivedTimestamp() {
        return receivedTimestamp;
    }

    public InetAddress getSenderAddress() { return senderAddress; }

    public void setSenderAddress(InetAddress senderAddress) { this.senderAddress = senderAddress; }
}