Open Kilda Java Documentation
FlowCacheSyncResults.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.payload.flow;
17 
18 import com.fasterxml.jackson.annotation.JsonCreator;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import lombok.Value;
21 
22 import java.util.List;
23 
35 @Value
36 public class FlowCacheSyncResults {
37 
41  @JsonProperty("dropped_flows")
42  private List<String> droppedFlows;
43 
47  @JsonProperty("added_flows")
48  private List<String> addedFlows;
49 
53  @JsonProperty("modified_flows")
54  private List<String> modifiedFlows;
55 
59  @JsonProperty("unchanged_flows")
60  private List<String> unchangedFlows;
61 
62  @JsonCreator
64  @JsonProperty("dropped_flows") List<String> droppedFlows,
65  @JsonProperty("added_flows") List<String> addedFlows,
66  @JsonProperty("modified_flows") List<String> modifiedFlows,
67  @JsonProperty("unchanged_flows") List<String> unchangedFlows) {
68  this.droppedFlows = droppedFlows;
69  this.addedFlows = addedFlows;
70  this.modifiedFlows = modifiedFlows;
71  this.unchangedFlows = unchangedFlows;
72  }
73 }
74 
FlowCacheSyncResults( @JsonProperty("dropped_flows") List< String > droppedFlows, @JsonProperty("added_flows") List< String > addedFlows, @JsonProperty("modified_flows") List< String > modifiedFlows, @JsonProperty("unchanged_flows") List< String > unchangedFlows)