@@ -37,7 +37,7 @@ public final class BatchOverrideConfiguration implements ToCopyableBuilder<Batch
37
37
private final Integer maxBatchItems ;
38
38
private final Integer maxBatchKeys ;
39
39
private final Integer maxBufferSize ;
40
- private final Duration maxBatchOpenDuration ;
40
+ private final Duration batchSendRequestFrequency ;
41
41
private final Duration visibilityTimeout ;
42
42
private final Duration longPollWaitTimeout ;
43
43
private final Duration minReceiveWaitTime ;
@@ -51,7 +51,7 @@ private BatchOverrideConfiguration(Builder builder) {
51
51
this .maxBatchItems = Validate .isPositiveOrNull (builder .maxBatchItems , "maxBatchItems" );
52
52
this .maxBatchKeys = Validate .isPositiveOrNull (builder .maxBatchKeys , "maxBatchKeys" );
53
53
this .maxBufferSize = Validate .isPositiveOrNull (builder .maxBufferSize , "maxBufferSize" );
54
- this .maxBatchOpenDuration = Validate .isPositiveOrNull (builder .maxBatchOpenDuration , "maxBatchOpenDuration " );
54
+ this .batchSendRequestFrequency = Validate .isPositiveOrNull (builder .batchSendRequestFrequency , "batchSendRequestFrequency " );
55
55
this .visibilityTimeout = Validate .isPositiveOrNull (builder .visibilityTimeout , "visibilityTimeout" );
56
56
this .longPollWaitTimeout = Validate .isPositiveOrNull (builder .longPollWaitTimeout , "longPollWaitTimeout" );
57
57
this .minReceiveWaitTime = Validate .isPositiveOrNull (builder .minReceiveWaitTime , "minReceiveWaitTime" );
@@ -94,8 +94,8 @@ public Integer maxDoneReceiveBatches() {
94
94
/**
95
95
* @return the optional maximum amount of time that an outgoing call waits to be batched with messages of the same type.
96
96
*/
97
- public Duration maxBatchOpenDuration () {
98
- return maxBatchOpenDuration ;
97
+ public Duration batchSendRequestFrequency () {
98
+ return batchSendRequestFrequency ;
99
99
}
100
100
101
101
/**
@@ -153,7 +153,7 @@ public Builder toBuilder() {
153
153
return new Builder ().maxBatchItems (maxBatchItems )
154
154
.maxBatchKeys (maxBatchKeys )
155
155
.maxBufferSize (maxBufferSize )
156
- .maxBatchOpenDuration ( maxBatchOpenDuration )
156
+ .batchSendRequestFrequency ( batchSendRequestFrequency )
157
157
.visibilityTimeout (visibilityTimeout )
158
158
.longPollWaitTimeout (longPollWaitTimeout )
159
159
.minReceiveWaitTime (minReceiveWaitTime )
@@ -170,7 +170,7 @@ public String toString() {
170
170
.add ("maxBatchItems" , maxBatchItems )
171
171
.add ("maxBatchKeys" , maxBatchKeys )
172
172
.add ("maxBufferSize" , maxBufferSize )
173
- .add ("maxBatchOpenDuration " , maxBatchOpenDuration . toMillis () )
173
+ .add ("batchSendRequestFrequency " , batchSendRequestFrequency )
174
174
.add ("visibilityTimeout" , visibilityTimeout )
175
175
.add ("longPollWaitTimeout" , longPollWaitTimeout )
176
176
.add ("minReceiveWaitTime" , minReceiveWaitTime )
@@ -203,8 +203,8 @@ public boolean equals(Object o) {
203
203
return false ;
204
204
}
205
205
206
- if (maxBatchOpenDuration != null ? !maxBatchOpenDuration .equals (that .maxBatchOpenDuration ) :
207
- that .maxBatchOpenDuration != null ) {
206
+ if (batchSendRequestFrequency != null ? !batchSendRequestFrequency .equals (that .batchSendRequestFrequency ) :
207
+ that .batchSendRequestFrequency != null ) {
208
208
return false ;
209
209
}
210
210
if (visibilityTimeout != null ? !visibilityTimeout .equals (that .visibilityTimeout ) :
@@ -244,7 +244,7 @@ public int hashCode() {
244
244
int result = maxBatchItems != null ? maxBatchItems .hashCode () : 0 ;
245
245
result = 31 * result + (maxBatchKeys != null ? maxBatchKeys .hashCode () : 0 );
246
246
result = 31 * result + (maxBufferSize != null ? maxBufferSize .hashCode () : 0 );
247
- result = 31 * result + (maxBatchOpenDuration != null ? maxBatchOpenDuration .hashCode () : 0 );
247
+ result = 31 * result + (batchSendRequestFrequency != null ? batchSendRequestFrequency .hashCode () : 0 );
248
248
result = 31 * result + (visibilityTimeout != null ? visibilityTimeout .hashCode () : 0 );
249
249
result = 31 * result + (longPollWaitTimeout != null ? longPollWaitTimeout .hashCode () : 0 );
250
250
result = 31 * result + (minReceiveWaitTime != null ? minReceiveWaitTime .hashCode () : 0 );
@@ -261,7 +261,7 @@ public static final class Builder implements CopyableBuilder<Builder, BatchOverr
261
261
private Integer maxBatchItems ;
262
262
private Integer maxBatchKeys ;
263
263
private Integer maxBufferSize ;
264
- private Duration maxBatchOpenDuration ;
264
+ private Duration batchSendRequestFrequency ;
265
265
private Duration visibilityTimeout ;
266
266
private Duration longPollWaitTimeout ;
267
267
private Duration minReceiveWaitTime ;
@@ -315,11 +315,11 @@ public Builder maxBufferSize(Integer maxBufferSize) {
315
315
* Define the maximum amount of time that an outgoing call waits for other requests before sending out a
316
316
* batch request.
317
317
* TODO : Decide if Ms needs to be added to the name in surface API review meeting
318
- * @param maxBatchOpenDuration The new maxBatchOpenDuration value.
318
+ * @param batchSendRequestFrequency The new batchSendRequestFrequency value.
319
319
* @return This object for method chaining.
320
320
*/
321
- public Builder maxBatchOpenDuration (Duration maxBatchOpenDuration ) {
322
- this .maxBatchOpenDuration = maxBatchOpenDuration ;
321
+ public Builder batchSendRequestFrequency (Duration batchSendRequestFrequency ) {
322
+ this .batchSendRequestFrequency = batchSendRequestFrequency ;
323
323
return this ;
324
324
}
325
325
0 commit comments