16 package org.openkilda.messaging;
18 import static com.google.common.base.MoreObjects.toStringHelper;
24 import com.fasterxml.jackson.annotation.JsonCreator;
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
30 import java.io.Serializable;
36 @JsonInclude(JsonInclude.Include.NON_NULL)
46 private static final long serialVersionUID = 1L;
52 @JsonProperty(CORRELATION_ID)
53 protected String correlationId;
58 @JsonProperty(DESTINATION)
69 public
Message(@JsonProperty(TIMESTAMP) final
long timestamp,
70 @JsonProperty(CORRELATION_ID) final String correlationId,
71 @JsonProperty(DESTINATION) final
Destination destination) {
73 this.correlationId = correlationId;
74 this.destination = destination;
83 public Message(
final long timestamp,
final String correlationId) {
85 this.correlationId = correlationId;
112 this.destination = destination;
120 return toStringHelper(
this)
121 .add(TIMESTAMP, timestamp)
122 .add(CORRELATION_ID, correlationId)
123 .add(DESTINATION, destination)
static final String PAYLOAD
static final String DESTINATION
void setDestination(final Destination destination)
static final String CORRELATION_ID
Destination getDestination()
static final String TIMESTAMP
Message(final long timestamp, final String correlationId)
String getCorrelationId()