Open Kilda Java Documentation
ChunkedInfoMessage.java
Go to the documentation of this file.
1 /* Copyright 2018 Telstra Open Source
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package org.openkilda.messaging.info;
17 
19 import static org.openkilda.messaging.Utils.PAYLOAD;
20 import static org.openkilda.messaging.Utils.TIMESTAMP;
21 
22 import com.fasterxml.jackson.annotation.JsonProperty;
23 import lombok.Getter;
24 import lombok.ToString;
25 
26 @Getter
27 @ToString(callSuper = true)
28 public class ChunkedInfoMessage extends InfoMessage {
29 
30  @JsonProperty("next_request_id")
31  private String nextRequestId;
32 
33  public ChunkedInfoMessage(@JsonProperty(PAYLOAD) final InfoData data,
34  @JsonProperty(TIMESTAMP) final long timestamp,
35  @JsonProperty(CORRELATION_ID) final String correlationId,
36  @JsonProperty("next_request_id") String nextRequestId) {
37  super(data, timestamp, correlationId);
38  this.nextRequestId = nextRequestId;
39  }
40 }
static final String PAYLOAD
Definition: Utils.java:57
ChunkedInfoMessage(@JsonProperty(PAYLOAD) final InfoData data, @JsonProperty(TIMESTAMP) final long timestamp, @JsonProperty(CORRELATION_ID) final String correlationId, @JsonProperty("next_request_id") String nextRequestId)
static final String CORRELATION_ID
Definition: Utils.java:43
static final String TIMESTAMP
Definition: Utils.java:35