16 package org.openkilda.messaging.command;
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;
29 import java.util.Objects;
34 @JsonInclude(JsonInclude.Include.NON_NULL)
37 @JsonProperty(
"reply_to")
38 protected String replyTo;
51 @JsonProperty(TIMESTAMP) final
long timestamp,
52 @JsonProperty(CORRELATION_ID) final String correlationId,
53 @JsonProperty(DESTINATION) final
Destination destination,
54 @JsonProperty("reply_to") final String replyTo) {
55 super(
data, timestamp, correlationId, destination);
56 this.replyTo = Objects.requireNonNull(replyTo,
"reply_to must not be null");
65 return toStringHelper(
this)
66 .add(TIMESTAMP, timestamp)
67 .add(CORRELATION_ID, correlationId)
68 .add(DESTINATION, destination)
69 .add(
"replyTo", replyTo)
static final String PAYLOAD
static final String DESTINATION
static final String CORRELATION_ID
static final String TIMESTAMP