16 package org.openkilda.messaging.ctrl;
18 import static com.google.common.base.MoreObjects.toStringHelper;
21 import com.fasterxml.jackson.annotation.JsonCreator;
22 import com.fasterxml.jackson.annotation.JsonInclude;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
25 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
33 @JsonInclude(JsonInclude.Include.NON_NULL)
34 @JsonPropertyOrder(
value = {
43 private static final long serialVersionUID = 1L;
46 private String route =
"*";
51 @JsonProperty(PAYLOAD)
65 @JsonProperty(TIMESTAMP)
final long timestamp,
66 @JsonProperty(CORRELATION_ID)
final String correlationId,
67 @JsonProperty(DESTINATION)
final Destination destination) {
68 super(timestamp, correlationId, destination);
91 return toStringHelper(
this)
92 .add(TIMESTAMP, timestamp)
93 .add(CORRELATION_ID, correlationId)
94 .add(DESTINATION, destination)
CtrlRequest(@JsonProperty(ROUTE) String route, @JsonProperty(PAYLOAD) final RequestData data, @JsonProperty(TIMESTAMP) final long timestamp, @JsonProperty(CORRELATION_ID) final String correlationId, @JsonProperty(DESTINATION) final Destination destination)