@@ -189,7 +189,6 @@ public CompletableFuture<APostOperationResponse> aPostOperation(APostOperationRe
189
189
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
190
190
.withMetricCollector (apiCallMetricCollector ).hostPrefixExpression (resolvedHostExpression )
191
191
.withInput (aPostOperationRequest ));
192
- AwsRequestOverrideConfiguration requestOverrideConfig = aPostOperationRequest .overrideConfiguration ().orElse (null );
193
192
CompletableFuture <APostOperationResponse > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
194
193
metricPublishers .forEach (p -> p .publish (apiCallMetricCollector .collect ()));
195
194
});
@@ -249,8 +248,6 @@ public CompletableFuture<APostOperationWithOutputResponse> aPostOperationWithOut
249
248
.withMarshaller (new APostOperationWithOutputRequestMarshaller (protocolFactory ))
250
249
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
251
250
.withMetricCollector (apiCallMetricCollector ).withInput (aPostOperationWithOutputRequest ));
252
- AwsRequestOverrideConfiguration requestOverrideConfig = aPostOperationWithOutputRequest .overrideConfiguration ()
253
- .orElse (null );
254
251
CompletableFuture <APostOperationWithOutputResponse > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
255
252
metricPublishers .forEach (p -> p .publish (apiCallMetricCollector .collect ()));
256
253
});
@@ -335,8 +332,6 @@ public CompletableFuture<Void> eventStreamOperation(EventStreamOperationRequest
335
332
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
336
333
.withMetricCollector (apiCallMetricCollector ).withInput (eventStreamOperationRequest ),
337
334
restAsyncResponseTransformer );
338
- AwsRequestOverrideConfiguration requestOverrideConfig = eventStreamOperationRequest .overrideConfiguration ().orElse (
339
- null );
340
335
CompletableFuture <Void > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
341
336
if (e != null ) {
342
337
try {
@@ -412,8 +407,6 @@ public CompletableFuture<EventStreamOperationWithOnlyInputResponse> eventStreamO
412
407
.withAsyncRequestBody (AsyncRequestBody .fromPublisher (adapted )).withResponseHandler (responseHandler )
413
408
.withErrorResponseHandler (errorResponseHandler ).withMetricCollector (apiCallMetricCollector )
414
409
.withInput (eventStreamOperationWithOnlyInputRequest ));
415
- AwsRequestOverrideConfiguration requestOverrideConfig = eventStreamOperationWithOnlyInputRequest
416
- .overrideConfiguration ().orElse (null );
417
410
CompletableFuture <EventStreamOperationWithOnlyInputResponse > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
418
411
metricPublishers .forEach (p -> p .publish (apiCallMetricCollector .collect ()));
419
412
});
@@ -494,8 +487,6 @@ public CompletableFuture<Void> eventStreamOperationWithOnlyOutput(
494
487
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
495
488
.withMetricCollector (apiCallMetricCollector )
496
489
.withInput (eventStreamOperationWithOnlyOutputRequest ), restAsyncResponseTransformer );
497
- AwsRequestOverrideConfiguration requestOverrideConfig = eventStreamOperationWithOnlyOutputRequest
498
- .overrideConfiguration ().orElse (null );
499
490
CompletableFuture <Void > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
500
491
if (e != null ) {
501
492
try {
@@ -564,8 +555,6 @@ public CompletableFuture<GetWithoutRequiredMembersResponse> getWithoutRequiredMe
564
555
.withMarshaller (new GetWithoutRequiredMembersRequestMarshaller (protocolFactory ))
565
556
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
566
557
.withMetricCollector (apiCallMetricCollector ).withInput (getWithoutRequiredMembersRequest ));
567
- AwsRequestOverrideConfiguration requestOverrideConfig = getWithoutRequiredMembersRequest .overrideConfiguration ()
568
- .orElse (null );
569
558
CompletableFuture <GetWithoutRequiredMembersResponse > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
570
559
metricPublishers .forEach (p -> p .publish (apiCallMetricCollector .collect ()));
571
560
});
@@ -625,8 +614,6 @@ public CompletableFuture<OperationWithChecksumRequiredResponse> operationWithChe
625
614
.withMetricCollector (apiCallMetricCollector )
626
615
.putExecutionAttribute (SdkInternalExecutionAttribute .HTTP_CHECKSUM_REQUIRED ,
627
616
HttpChecksumRequired .create ()).withInput (operationWithChecksumRequiredRequest ));
628
- AwsRequestOverrideConfiguration requestOverrideConfig = operationWithChecksumRequiredRequest .overrideConfiguration ()
629
- .orElse (null );
630
617
CompletableFuture <OperationWithChecksumRequiredResponse > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
631
618
metricPublishers .forEach (p -> p .publish (apiCallMetricCollector .collect ()));
632
619
});
@@ -683,8 +670,6 @@ public CompletableFuture<PaginatedOperationWithResultKeyResponse> paginatedOpera
683
670
.withMarshaller (new PaginatedOperationWithResultKeyRequestMarshaller (protocolFactory ))
684
671
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
685
672
.withMetricCollector (apiCallMetricCollector ).withInput (paginatedOperationWithResultKeyRequest ));
686
- AwsRequestOverrideConfiguration requestOverrideConfig = paginatedOperationWithResultKeyRequest
687
- .overrideConfiguration ().orElse (null );
688
673
CompletableFuture <PaginatedOperationWithResultKeyResponse > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
689
674
metricPublishers .forEach (p -> p .publish (apiCallMetricCollector .collect ()));
690
675
});
@@ -718,7 +703,7 @@ public CompletableFuture<PaginatedOperationWithResultKeyResponse> paginatedOpera
718
703
* The following are few ways to use the response class:
719
704
* </p>
720
705
* 1) Using the subscribe helper method
721
- *
706
+ *
722
707
* <pre>
723
708
* {@code
724
709
* software.amazon.awssdk.services.json.paginators.PaginatedOperationWithResultKeyPublisher publisher = client.paginatedOperationWithResultKeyPaginator(request);
@@ -728,19 +713,19 @@ public CompletableFuture<PaginatedOperationWithResultKeyResponse> paginatedOpera
728
713
* </pre>
729
714
*
730
715
* 2) Using a custom subscriber
731
- *
716
+ *
732
717
* <pre>
733
718
* {@code
734
719
* software.amazon.awssdk.services.json.paginators.PaginatedOperationWithResultKeyPublisher publisher = client.paginatedOperationWithResultKeyPaginator(request);
735
720
* publisher.subscribe(new Subscriber<software.amazon.awssdk.services.json.model.PaginatedOperationWithResultKeyResponse>() {
736
- *
721
+ *
737
722
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
738
- *
739
- *
723
+ *
724
+ *
740
725
* public void onNext(software.amazon.awssdk.services.json.model.PaginatedOperationWithResultKeyResponse response) { //... };
741
726
* });}
742
727
* </pre>
743
- *
728
+ *
744
729
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
745
730
* <p>
746
731
* <b>Please notice that the configuration of MaxResults won't limit the number of results you get with the
@@ -818,8 +803,6 @@ public CompletableFuture<PaginatedOperationWithoutResultKeyResponse> paginatedOp
818
803
.withMarshaller (new PaginatedOperationWithoutResultKeyRequestMarshaller (protocolFactory ))
819
804
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
820
805
.withMetricCollector (apiCallMetricCollector ).withInput (paginatedOperationWithoutResultKeyRequest ));
821
- AwsRequestOverrideConfiguration requestOverrideConfig = paginatedOperationWithoutResultKeyRequest
822
- .overrideConfiguration ().orElse (null );
823
806
CompletableFuture <PaginatedOperationWithoutResultKeyResponse > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
824
807
metricPublishers .forEach (p -> p .publish (apiCallMetricCollector .collect ()));
825
808
});
@@ -853,7 +836,7 @@ public CompletableFuture<PaginatedOperationWithoutResultKeyResponse> paginatedOp
853
836
* The following are few ways to use the response class:
854
837
* </p>
855
838
* 1) Using the subscribe helper method
856
- *
839
+ *
857
840
* <pre>
858
841
* {@code
859
842
* software.amazon.awssdk.services.json.paginators.PaginatedOperationWithoutResultKeyPublisher publisher = client.paginatedOperationWithoutResultKeyPaginator(request);
@@ -863,19 +846,19 @@ public CompletableFuture<PaginatedOperationWithoutResultKeyResponse> paginatedOp
863
846
* </pre>
864
847
*
865
848
* 2) Using a custom subscriber
866
- *
849
+ *
867
850
* <pre>
868
851
* {@code
869
852
* software.amazon.awssdk.services.json.paginators.PaginatedOperationWithoutResultKeyPublisher publisher = client.paginatedOperationWithoutResultKeyPaginator(request);
870
853
* publisher.subscribe(new Subscriber<software.amazon.awssdk.services.json.model.PaginatedOperationWithoutResultKeyResponse>() {
871
- *
854
+ *
872
855
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
873
- *
874
- *
856
+ *
857
+ *
875
858
* public void onNext(software.amazon.awssdk.services.json.model.PaginatedOperationWithoutResultKeyResponse response) { //... };
876
859
* });}
877
860
* </pre>
878
- *
861
+ *
879
862
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
880
863
* <p>
881
864
* <b>Please notice that the configuration of MaxResults won't limit the number of results you get with the
@@ -964,8 +947,6 @@ public CompletableFuture<StreamingInputOperationResponse> streamingInputOperatio
964
947
.asyncRequestBody (requestBody ).build ()).withResponseHandler (responseHandler )
965
948
.withErrorResponseHandler (errorResponseHandler ).withMetricCollector (apiCallMetricCollector )
966
949
.withAsyncRequestBody (requestBody ).withInput (streamingInputOperationRequest ));
967
- AwsRequestOverrideConfiguration requestOverrideConfig = streamingInputOperationRequest .overrideConfiguration ()
968
- .orElse (null );
969
950
CompletableFuture <StreamingInputOperationResponse > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
970
951
metricPublishers .forEach (p -> p .publish (apiCallMetricCollector .collect ()));
971
952
});
@@ -1040,8 +1021,6 @@ public <ReturnT> CompletableFuture<ReturnT> streamingInputOutputOperation(
1040
1021
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
1041
1022
.withMetricCollector (apiCallMetricCollector ).withAsyncRequestBody (requestBody )
1042
1023
.withInput (streamingInputOutputOperationRequest ), asyncResponseTransformer );
1043
- AwsRequestOverrideConfiguration requestOverrideConfig = streamingInputOutputOperationRequest .overrideConfiguration ()
1044
- .orElse (null );
1045
1024
CompletableFuture <ReturnT > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
1046
1025
if (e != null ) {
1047
1026
runAndLogError (log , "Exception thrown in exceptionOccurred callback, ignoring" ,
@@ -1110,8 +1089,6 @@ public <ReturnT> CompletableFuture<ReturnT> streamingOutputOperation(
1110
1089
.withResponseHandler (responseHandler ).withErrorResponseHandler (errorResponseHandler )
1111
1090
.withMetricCollector (apiCallMetricCollector ).withInput (streamingOutputOperationRequest ),
1112
1091
asyncResponseTransformer );
1113
- AwsRequestOverrideConfiguration requestOverrideConfig = streamingOutputOperationRequest .overrideConfiguration ()
1114
- .orElse (null );
1115
1092
CompletableFuture <ReturnT > whenCompleted = executeFuture .whenComplete ((r , e ) -> {
1116
1093
if (e != null ) {
1117
1094
runAndLogError (log , "Exception thrown in exceptionOccurred callback, ignoring" ,
@@ -1194,4 +1171,3 @@ private HttpResponseHandler<AwsServiceException> createErrorResponseHandler(Base
1194
1171
return protocolFactory .createErrorResponseHandler (operationMetadata );
1195
1172
}
1196
1173
}
1197
-
0 commit comments