1919import org .apache .commons .lang3 .builder .EqualsBuilder ;
2020import org .apache .commons .lang3 .builder .HashCodeBuilder ;
2121import org .apache .commons .lang3 .builder .ToStringBuilder ;
22+ import sun .rmi .runtime .Log ;
2223
2324import java .util .List ;
2425import java .util .Map ;
@@ -34,18 +35,19 @@ public class Response {
3435 private final Map <String , String > transitionsState ;
3536 private final List <String > removesState ;
3637 private final Integer fixedDelay ;
37-
38+ private final LogNormalDelay logNormalDelay ;
3839
3940 @ JsonCreator
4041 public Response (
41- @ JsonProperty ("status" ) Integer status ,
42- @ JsonProperty ("body" ) String body ,
43- @ JsonProperty ("encodedBody" ) boolean encodedBody ,
44- @ JsonProperty ("templated" ) boolean templated ,
45- @ JsonProperty ("headers" ) Map <String , List <String >> headers ,
46- @ JsonProperty ("transitionsState" ) Map <String , String > transitionsState ,
47- @ JsonProperty ("removesState" ) List <String > removesState ,
48- @ JsonProperty ("fixedDelay" ) Integer fixedDelay ) {
42+ @ JsonProperty ("status" ) Integer status ,
43+ @ JsonProperty ("body" ) String body ,
44+ @ JsonProperty ("encodedBody" ) boolean encodedBody ,
45+ @ JsonProperty ("templated" ) boolean templated ,
46+ @ JsonProperty ("headers" ) Map <String , List <String >> headers ,
47+ @ JsonProperty ("transitionsState" ) Map <String , String > transitionsState ,
48+ @ JsonProperty ("removesState" ) List <String > removesState ,
49+ @ JsonProperty ("fixedDelay" ) Integer fixedDelay ,
50+ @ JsonProperty ("logNormalDelay" ) LogNormalDelay logNormalDelay ) {
4951 this .status = status ;
5052 this .body = body ;
5153 this .encodedBody = encodedBody ;
@@ -54,6 +56,7 @@ public Response(
5456 this .transitionsState = transitionsState ;
5557 this .removesState = removesState ;
5658 this .fixedDelay = fixedDelay ;
59+ this .logNormalDelay = logNormalDelay ;
5760 }
5861
5962 public Integer getStatus () {
@@ -89,6 +92,10 @@ public Integer getFixedDelay() {
8992 return fixedDelay ;
9093 }
9194
95+ public LogNormalDelay getLogNormalDelay () {
96+ return logNormalDelay ;
97+ }
98+
9299 static class Builder {
93100 private Integer status ;
94101 private String body ;
@@ -98,6 +105,7 @@ static class Builder {
98105 private Map <String , String > transitionsState ;
99106 private List <String > removesState ;
100107 private Integer fixedDelay ;
108+ private LogNormalDelay logNormalDelay ;
101109
102110 Builder status (int status ) {
103111 this .status = status ;
@@ -139,8 +147,13 @@ Builder fixedDelay(int fixedDelay) {
139147 return this ;
140148 }
141149
150+ Builder logNormalDelay (int min , int max , int mean , int median ) {
151+ this .logNormalDelay = new LogNormalDelay (min , max , mean , median );
152+ return this ;
153+ }
154+
142155 Response build () {
143- return new Response (status , body , encodedBody , templated , headers , transitionsState , removesState , fixedDelay );
156+ return new Response (status , body , encodedBody , templated , headers , transitionsState , removesState , fixedDelay , logNormalDelay );
144157 }
145158 }
146159
0 commit comments