Open Kilda Java Documentation
FlowDump.java
Go to the documentation of this file.
1 package org.openkilda.messaging.ctrl.state;
2 
3 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
6 
7 import com.fasterxml.jackson.annotation.JsonCreator;
8 import com.fasterxml.jackson.annotation.JsonInclude;
9 import com.fasterxml.jackson.annotation.JsonProperty;
10 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11 
12 import java.io.Serializable;
13 import java.util.Set;
14 
15 @JsonSerialize
16 @JsonInclude(JsonInclude.Include.NON_NULL)
17 @JsonIgnoreProperties(ignoreUnknown = true)
18 public class FlowDump implements Serializable {
19  @JsonProperty("flows")
20  private Set<ImmutablePair<Flow, Flow>> flows;
21 
22  @JsonCreator
23  public FlowDump(
24  @JsonProperty("flows") Set<ImmutablePair<Flow, Flow>> flows) {
25  this.flows = flows;
26  }
27 
28  public Set<ImmutablePair<Flow, Flow>> getFlows() {
29  return flows;
30  }
31 }
Set< ImmutablePair< Flow, Flow > > getFlows()
Definition: FlowDump.java:28
FlowDump( @JsonProperty("flows") Set< ImmutablePair< Flow, Flow >> flows)
Definition: FlowDump.java:23