forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addHttp2ConnectionConfig #13
Open
xinlian12
wants to merge
505
commits into
enableHttp2ForTest
Choose a base branch
from
enableHttp2PublicAPI
base: enableHttp2ForTest
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
505 commits
Select commit
Hold shift + click to select a range
b0384e5
[Automation] Generate Fluent Lite from Swagger communication#package-…
azure-sdk 79ffe5f
[Automation] Generate Fluent Lite from Swagger support#package-2024-0…
azure-sdk 171e418
[Automation] Generate Fluent Lite from Swagger newrelic#package-2024-…
azure-sdk d247f8d
[Automation] Generate Fluent Lite from Swagger confluent#package-2024…
azure-sdk b713b6d
[Automation] Generate Fluent Lite from Swagger sphere#package-2024-04…
azure-sdk 1fee77b
Increment package versions for imagebuilder releases (#43486)
azure-sdk 97edc0a
Increment package versions for recoveryservicesbackup releases (#43487)
azure-sdk 63bf526
Update Javadoc of premium SDK for azure-resourcemanager-appplatform (…
v-hongli1 d50e2b3
Increment package versions for frontdoor releases (#43491)
azure-sdk a73381c
Increment package versions for iotfirmwaredefense releases (#43493)
azure-sdk 10665c4
Increment package versions for support releases (#43495)
azure-sdk 44a5ad1
Increment package versions for healthcareapis releases (#43492)
azure-sdk 59e9892
Increment package versions for newrelicobservability releases (#43494)
azure-sdk e6cc4c6
Increment package versions for sphere releases (#43496)
azure-sdk 621d203
Increment package versions for confluent releases (#43497)
azure-sdk 6579e94
Fix bug: Registered the empty value for ineligible definition, it cau…
moarychan 8886d80
[Automation] Generate Fluent Lite from Swagger chaos#package-2024-01 …
azure-sdk 1bf066e
Increment package versions for chaos releases (#43501)
azure-sdk 7401a92
Increment versions for communication/azure-resourcemanager-communicat…
azure-sdk b70a567
Increment versions for maps/azure-maps-search releases (#43454)
azure-sdk 586b854
Fix AKS and Spring Cloud statsbeat numbers (#43465)
trask 7f9bf50
updated SDK based on OPS outgoing call review feedback (#43434)
juntuchen-msft c5e74a8
Live Metrics Filtering Part 4: Filtering For Metrics Charts (#43323)
harsimar 50e230d
Removed most mentions of Azure from Client Core. (#43455)
vcolin7 1379ba7
Only include CHANGELOG and README in install when src exists (#43505)
alzimmermsft 703cc06
Find unused deps script and cleanup existing cruft (#43456)
billwert 5e9b63f
update module-info for packages that already migrated to azure-json (…
XiaofeiCao df77afd
Update Javadoc of premium SDK for azure-resourcemanager-authorization…
v-hongli1 ec53ba1
Update Javadoc of premium SDK for azure-resourcemanager-cdn (#43498)
v-hongli1 803fee7
[Automation] Generate Fluent Lite from Swagger mysql#package-flexible…
azure-sdk ec4a5be
Update Javadoc of premium SDK for azure-resourcemanager-appservice (#…
v-hongli1 7f518f6
[Automation] Generate Fluent Lite from Swagger relay#package-2017-04 …
azure-sdk a5b7ff1
mgmt, incremental version manually (#43515)
weidongxu-microsoft c793ab0
Update Javadoc of premium SDK for azure-resourcemanager-containerinst…
v-hongli1 e0e27c4
Fix update package version to checkout missing Markdown files (#43502)
alzimmermsft 6c1394d
Cleanup RestProxy code (#43503)
alzimmermsft 6b7c00c
Added interruptAudioAndAnnounce api (#43357)
v-durgeshs 3de165d
Fix Publish to Java Dev Feed (#43520)
alzimmermsft 1347d34
Update changelog for clientcore beta release (#43521)
samvaity 6db06ae
Removing .onErrorResume() from StorageFileOutputStream (#43453)
ibrahimrabab 53a82bc
Fix up test names for reporting (#43510)
billwert 2f6eaf4
Update external_dependencies.txt (#43508)
Netyyyy 1b05140
Update Javadoc of premium SDK for azure-resourcemanager-compute (#43499)
v-hongli1 e9d89bf
Update Spring Boot and Spring Cloud versions for the compatibility te…
Netyyyy 848d7fd
Update Javadoc of premium SDK for azure-resourcemanager-containerregi…
v-hongli1 14d9d60
[Automation] Generate Fluent Lite from Swagger healthbot#package-2020…
azure-sdk e240aeb
[Automation] Generate Fluent Lite from Swagger apimanagement#package-…
azure-sdk d754b7d
[Automation] Generate Fluent Lite from Swagger storagecache#package-2…
azure-sdk 4a3b0c3
Increment package versions for storagecache releases (#43531)
azure-sdk 64fc9da
Increment package versions for healthbot releases (#43530)
azure-sdk 384498b
Increment package versions for apimanagement releases (#43532)
azure-sdk 3a048bb
mgmt, prepare release 2.46.0 (#43527)
XiaofeiCao 179a8fe
[Automation] Generate Fluent Lite from Swagger recoveryservicessitere…
azure-sdk 9eeafae
[Automation] Generate Fluent Lite from Swagger hybridkubernetes#packa…
azure-sdk 3909e85
[Automation] Generate Fluent Lite from Swagger synapse#package-2021-0…
azure-sdk 219abd9
Increment package versions for hybridkubernetes releases (#43536)
azure-sdk ec16611
Increment package versions for recoveryservicessiterecovery releases …
azure-sdk 22d10d3
[Automation] Generate Fluent Lite from Swagger databricks#package-202…
azure-sdk f7114dc
Update Javadoc of premium SDK for azure-resourcemanager-containerserv…
v-hongli1 e1f194b
Increment package versions for databricks releases (#43539)
azure-sdk c9b36e4
[Automation] Generate Fluent Lite from Swagger databoxedge#package-20…
azure-sdk 0574dca
Increment package versions for synapse releases (#43541)
azure-sdk d546e9d
[Automation] Generate Fluent Lite from Swagger mixedreality#package-2…
azure-sdk a7056aa
[Automation] Generate Fluent Lite from Swagger mobilenetwork#package-…
azure-sdk 1f8139c
[Automation] Generate Fluent Lite from Swagger security#package-compo…
azure-sdk 361dcff
[Automation] Generate Fluent Lite from Swagger recoveryservices#packa…
azure-sdk 31d8ff6
[Automation] Generate Fluent Lite from Swagger storagemover#package-2…
azure-sdk e1078aa
[Automation] Generate Fluent Lite from Swagger postgresql#package-202…
azure-sdk 0af63e2
Increment package versions for databoxedge releases (#43548)
azure-sdk 152e20f
Increment package versions for mobilenetwork releases (#43550)
azure-sdk 1489b34
Increment package versions for storagemover releases (#43551)
azure-sdk bad1337
Increment package versions for recoveryservices releases (#43552)
azure-sdk 90a66df
Increment package versions for postgresql releases (#43553)
azure-sdk c732e9e
Increment package versions for security releases (#43554)
azure-sdk c2df7df
Increment package versions for resourcemanager releases (#43549)
azure-sdk 646c075
Increment package versions for mixedreality releases (#43557)
azure-sdk bc0c8b5
Update Javadoc of premium SDK for azure-resourcemanager-cosmos (#43524)
v-hongli1 6659fae
[Automation] Generate Fluent Lite from Swagger automation#package-202…
azure-sdk f55957f
[Automation] Generate Fluent Lite from Swagger advisor#package-2020-0…
azure-sdk 2836a26
Increment package versions for automation releases (#43559)
azure-sdk 6ea59c3
Increment package versions for advisor releases (#43560)
azure-sdk 005a5da
[Automation] Generate Fluent Lite from Swagger azurestack#package-202…
azure-sdk f693235
Increment package versions for azurestack releases (#43562)
azure-sdk 727bdfe
[Automation] Generate Fluent Lite from Swagger databox#package-2022-1…
azure-sdk dfba318
Increment package versions for databox releases (#43568)
azure-sdk 5edceaf
[Automation] Generate Fluent Lite from Swagger consumption#package-20…
azure-sdk 710d392
[Automation] Generate Fluent Lite from Swagger signalr#package-2023-0…
azure-sdk c96188a
Increment package versions for consumption releases (#43571)
azure-sdk 3381ee6
[Automation] Generate Fluent Lite from Swagger datamigration#package-…
azure-sdk 5a22d58
Increment package versions for signalr releases (#43573)
azure-sdk f268d79
Increment package versions for datamigration releases (#43575)
azure-sdk 850f2ba
[Automation] Generate Fluent Lite from Swagger mariadb#package-2020-0…
azure-sdk a8143f3
[Automation] Generate Fluent Lite from Swagger logic#package-2019-05 …
azure-sdk a0a076e
Increment package versions for mariadb releases (#43577)
azure-sdk c59bd03
[Automation] Generate Fluent Lite from Swagger servicefabric#package-…
azure-sdk 0e07ce1
Increment package versions for logic releases (#43579)
azure-sdk 5a15188
[Automation] Generate Fluent Lite from Swagger cost-management#packag…
azure-sdk 65e80c3
Increment package versions for servicefabric releases (#43581)
azure-sdk 95e085f
Increment package versions for costmanagement releases (#43582)
azure-sdk bb947b6
Implement SAS-based authentication (#43448)
Lakicar95 45abed7
[Automation] Generate Fluent Lite from Swagger peering#package-2021-0…
azure-sdk 8a16ef8
[Automation] Generate Fluent Lite from Swagger servicefabricmanagedcl…
azure-sdk ce8cf94
Increment package versions for servicefabricmanagedclusters releases …
azure-sdk fa5f7ae
Increment package versions for peering releases (#43589)
azure-sdk 8a9e836
[Automation] Generate Fluent Lite from Swagger reservations#package-2…
azure-sdk c7922c8
[Automation] Generate Fluent Lite from Swagger policyinsights#package…
azure-sdk 22da121
Increment package versions for reservations releases (#43592)
azure-sdk db5e45f
Increment package versions for policyinsights releases (#43595)
azure-sdk eb11ae2
[Automation] Generate Fluent Lite from Swagger devcenter#package-2024…
azure-sdk 364e31a
[Automation] Generate Fluent Lite from Swagger subscription#package-2…
azure-sdk 274c3d8
Increment package versions for devcenter releases (#43597)
azure-sdk 0204ede
Increment package versions for subscription releases (#43599)
azure-sdk 50330da
[Automation] Generate Fluent Lite from Swagger orbital#package-2022-1…
azure-sdk 1020fc1
[Automation] Generate Fluent Lite from Swagger powerbidedicated#packa…
azure-sdk f531cb0
Increment package versions for orbital releases (#43606)
azure-sdk 0e03ef8
Increment package versions for powerbidedicated releases (#43605)
azure-sdk da664ce
[Automation] Generate Fluent Lite from Swagger notificationhubs#packa…
azure-sdk 289b556
[Automation] Generate Fluent Lite from Swagger dynatrace#package-2023…
azure-sdk a96e435
Update Javadoc of premium SDK for azure-resourcemanager-keyvault (#43…
v-hongli1 798d036
Increment package versions for notificationhubs releases (#43615)
azure-sdk 6f3453d
Increment package versions for dynatrace releases (#43616)
azure-sdk 7774f4b
Update Javadoc of premium SDK for azure-resourcemanager-eventhubs (#4…
v-hongli1 89dcd20
Update Javadoc of premium SDK for azure-resourcemanager-monitor (#43604)
v-hongli1 f96650b
[Automation] Generate Fluent Lite from Swagger security#package-compo…
azure-sdk 7e09a1c
[Automation] Generate Fluent Lite from Swagger marketplaceordering#pa…
azure-sdk f5a1eaa
Increment package versions for security releases (#43619)
azure-sdk 960a893
Increment package versions for marketplaceordering releases (#43620)
azure-sdk c6f9967
[Automation] Generate Fluent Lite from Swagger timeseriesinsights#pac…
azure-sdk e78dd3f
[Automation] Generate Fluent Lite from Swagger confidentialledger#pac…
azure-sdk a9b7be7
Update Javadoc of premium SDK for azure-resourcemanager-privatedns (#…
v-hongli1 b874c37
[Automation] Generate Fluent Lite from Swagger hardwaresecuritymodule…
azure-sdk 1e58e4f
Increment package versions for timeseriesinsights releases (#43624)
azure-sdk 7444a56
Increment package versions for confidentialledger releases (#43625)
azure-sdk 667f3b9
Increment package versions for hardwaresecuritymodules releases (#43628)
azure-sdk 42fd278
[Automation] Generate Fluent Lite from Swagger labservices#package-20…
azure-sdk fd47482
[Automation] Generate Fluent Lite from Swagger servicelinker#package-…
azure-sdk 51c5fab
Upgrade external dependencies to align with Spring Boot 3.4.1 (#43523)
Netyyyy 717ef55
Increment package versions for labservices releases (#43629)
azure-sdk f908324
Increment package versions for servicelinker releases (#43630)
azure-sdk 472dce0
Added options to fine-tune settings for bulk operations (#43509)
FabianMeiswinkel 4c7c69e
Update migration.md (#43135)
FabianMeiswinkel 7ba4a13
Update change log files (#43639)
Lakicar95 9658db9
Update properties description according to current doc (#43447)
v-minh1 0fe407a
Fix the issue where the token acquisition timeout is not set via the …
moarychan b499847
Increment package versions for maps/azure-maps-search releases (#43643)
azure-sdk 7efe87a
Increment package versions for maps/azure-maps-render releases (#43644)
azure-sdk a08f8c9
Increment package versions for clientcore releases (#43565)
azure-sdk cefeea6
Increment package versions for maps/azure-maps-route releases (#43645)
azure-sdk 433d8b2
Increment package versions for maps/azure-maps-geolocation releases (…
azure-sdk b6caa39
Added custom calling context in answer api. (#43220)
v-pivamshi 0b2283b
[Automation] Generate Fluent Lite from Swagger purview#package-2021-0…
azure-sdk c6748b6
Increment package versions for purview releases (#43662)
azure-sdk 1196345
[Automation] Generate Fluent Lite from Swagger botservice#package-202…
azure-sdk 13b064b
[Automation] Generate Fluent Lite from Swagger dnsresolver#package-20…
azure-sdk 459a505
Increment package versions for dnsresolver releases (#43665)
azure-sdk 4850404
Increment package versions for botservice releases (#43664)
azure-sdk a777661
[Automation] Generate Fluent Lite from Swagger azurearcdata#package-2…
azure-sdk 01781ec
[Automation] Generate Fluent Lite from Swagger edgeorder#package-2021…
azure-sdk f91bde0
Increment package versions for azurearcdata releases (#43670)
azure-sdk eb2d560
Update Javadoc of premium SDK for azure-resourcemanager-trafficmanage…
v-hongli1 edbc3e8
[Automation] Generate Fluent Lite from Swagger baremetalinfrastructur…
azure-sdk d2b0aa5
[Automation] Generate Fluent Lite from Swagger automanage#package-202…
azure-sdk dfad461
Increment package versions for edgeorder releases (#43673)
azure-sdk 19ec365
Increment package versions for baremetalinfrastructure releases (#43674)
azure-sdk 0348696
Increment package versions for automanage releases (#43675)
azure-sdk 7d90027
Increment package versions for maps/azure-maps-weather releases (#43655)
azure-sdk 10082f1
Increment package versions for maps/azure-maps-timezone releases (#43…
azure-sdk af26a48
Fix incorrect variable name (#43680)
azure-sdk 0626802
[Automation] Generate Fluent Lite from Swagger extendedlocation#packa…
azure-sdk 2698fd3
Increment package versions for extendedlocation releases (#43682)
azure-sdk 44f6691
[Automation] Generate Fluent Lite from Swagger storagepool#package-20…
azure-sdk 7274517
[Automation] Generate Fluent Lite from Swagger datalake-analytics#pac…
azure-sdk 52bc694
Increment package versions for storagepool releases (#43686)
azure-sdk 0930c29
[Automation] Generate Fluent Lite from Swagger datalake-store#package…
azure-sdk 83aa5da
[Automation] Generate Fluent Lite from Swagger solutions#package-mana…
azure-sdk 60ada3b
mgmt, regen securityinsights on stable api-version 2022-11 (#43689)
weidongxu-microsoft 4653120
Increment package versions for datalakestore releases (#43691)
azure-sdk 29eb6a6
Increment package versions for datalakeanalytics releases (#43687)
azure-sdk c060416
Increment package versions for managedapplications releases (#43693)
azure-sdk 148f043
Increment package versions for securityinsights releases (#43694)
azure-sdk bc36d88
mgmt, azure-json migration for deviceprovisioninservices (#43692)
XiaofeiCao 3d3d60a
mgmt, streamanalytics on api-version 2020-03 (#43695)
weidongxu-microsoft 591611b
Increment package versions for streamanalytics releases (#43696)
azure-sdk 765874a
[Kafka Connector]Fix BadRequest exception when using serverless datab…
xinlian12 2c3f220
[Automation] Generate Fluent Lite from Swagger postgresql#package-fle…
azure-sdk 872c13c
mgmt, manual increment version after deviceprovisioningservices relea…
XiaofeiCao 4003419
Increment package versions for postgresqlflexibleserver releases (#43…
azure-sdk db1de13
[Automation] Generate Fluent Lite from Swagger paloaltonetworks#packa…
azure-sdk 62d3f8d
Increment package versions for paloaltonetworks releases (#43711)
azure-sdk eb738d8
Use OTel autoconfigure (#43699)
jeanbisutti 005ceb4
UDFs for Mapping Feed Ranges to Buckets (#43092)
tvaron3 eaf0860
Simplify logging policy in clientcore (#43678)
lmolkova db428f2
ClientCore tracing zero dependencies, no plugins (#43346)
lmolkova 8af3fc7
update proxy to version with auto-shutdown present (#43713)
azure-sdk 5a09295
Update Javadoc of premium SDK for azure-resourcemanager-dns (#43600)
v-hongli1 311cbc1
Update Javadoc of premium SDK for azure-resourcemanager-msi (#43609)
v-hongli1 e66b66a
Update Javadoc of premium SDK for azure-resourcemanager (#43638)
v-hongli1 c403928
Add Authenticate header parser (#43714)
alzimmermsft 3589387
Live Metrics Filtering Part 5: Validator (#43506)
harsimar e7caf6c
Updated documentation around match and if none match etag for request…
kushagraThapar 42bbcfd
Add SDK prefix (#43700)
jeanbisutti 952bdb9
Add new fields to ACS EG system events (#43715)
samvaity 178bd1c
Increase DefaultElasticBoundSize to Stress All Tests (#43519)
ibrahimrabab f1f5e29
The PropertiesMerger implementation not handling property CustomEndpo…
moarychan 2cbcdf6
Support token credential cache for azure-identity-extension (#43659)
moarychan b5578fb
Enabling v2 stack as the default for Event Hubs (#43725)
anuchandy ae72729
Update Javadoc of premium SDK for azure-resourcemanager-storage (#43636)
v-hongli1 956c27a
Update Javadoc of premium SDK for azure-resourcemanager-search (#43633)
v-hongli1 53c5b61
Update Javadoc of premium SDK for azure-resourcemanager-sql (#43635)
v-hongli1 8f7b796
Allow for a few custom Checkstyle rules to be configured (#43731)
alzimmermsft 32092fb
Adding sum support for annotated queries (#43239)
trande4884 c412138
Running Prepare-Release for azure-messaging-servicebus January 2025 (…
anuchandy 3cd5f9b
Prepare azure-core for patch release (#43299)
srnagar 9da3182
Increment package versions for servicebus releases (#43740)
azure-sdk e92bcf6
Update Javadoc of premium SDK for azure-resourcemanager-redis (#43632)
v-hongli1 c4451f4
Update Javadoc of premium SDK for azure-resourcemanager-servicebus (#…
v-hongli1 e948b62
Update Javadoc of premium SDK for azure-resourcemanager-network (#43610)
v-hongli1 71f176d
Add metrics emitted from `BulkExecutor` responsible for dynamic batch…
jeet1995 90a3722
Revert core version update (#43742)
srnagar 5495b4c
Add Compile-time annotation-processor tool to clientcore (#43457)
samvaity 4698d06
merge main
nehrao1 948ce90
Allow RevApi extensions to be configured via the configuration file (…
alzimmermsft 0e28d0c
Fixing OffsetDateTimeDescribedType translation (#42995)
conniey c9f9b83
Add executorService API to ManagedIdentityCredentialBuilder (#43703)
billwert dbd675b
azure-core, add new `AzureCloud` expandable enum (#43099)
XiaofeiCao 18b2e54
clientcore, bug fix, logger null in HpptLoggingPolicy (#43745)
weidongxu-microsoft 15b2a10
clientcore, PagedIterable / PagedResponse / PagingOptions (#43484)
weidongxu-microsoft f6a6562
Fix Change Feed Full Fidelity Tests (#43483)
tvaron3 f0a3999
Add vmId to the Rntbd Health Check Error Message (#43079)
nehrao1 f14b9bc
January 2025 identity release (#43758)
billwert a89082f
Increment package versions for identity releases (#43761)
azure-sdk 5d9b6d9
mgmt, local generation for Azure Redis - 2024-11-01 (#43746)
v-hongli1 b861597
sdkautomation, enhance autorest automation error log (#43768)
XiaofeiCao d4e3b3d
Update Spring Boot and Spring Cloud versions for the compatibility te…
Netyyyy 2aa2130
Add distro name and version to the SDK name (#43737)
jeanbisutti a0d5a20
Updated README url references of docs.microsoft.com to learn.microsof…
sandeep-sen a596a57
Add pre-commit hooks script (#43656)
srnagar 7a84c69
add params (#43770)
NanaXiong00 cf76689
Ensured all Track 1 Key Vault libraries are removed. (#43773)
vcolin7 d465082
Improve properties merging testcases (#43734)
moarychan 70e1ebe
Tracing and log correlation without otel (#43718)
lmolkova d12b697
Fixed NPE issue in KeyVaultKeysModelsUtils (#43776)
vcolin7 53399b6
Mask iKeys in logs (#43698)
jeanbisutti 6189f4b
Live Metrics Filtering Part 6: Error Tracker (#43744)
harsimar 03599e6
Update pipeline and version tooling to support clientcore (#43757)
alzimmermsft dba2326
Release azure-cosmos, azure-cosmos-kafka-connect, azure-cosmos-spark,…
tvaron3 df17db0
remove erroneous package inclusion during package-properties evaluati…
azure-sdk 9f1e0ca
make toDiagnosticsString() package private
nehrao1 d9ac954
merge main
nehrao1 ac94450
remove annotation
nehrao1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/Http2ConnectionConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.cosmos; | ||
|
||
import com.azure.cosmos.implementation.Configs; | ||
import com.azure.cosmos.util.Beta; | ||
|
||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public class Http2ConnectionConfig { | ||
private static final int DEFAULT_MAX_CONCURRENT_STREAMS = 30; | ||
private static final int DEFAULT_MIN_CONNECTION_POOL_SIZE = 1; | ||
|
||
private int maxConnectionPoolSize; | ||
private int minConnectionPoolSize; | ||
private int maxConcurrentStreams; | ||
private boolean enabled; | ||
|
||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public Http2ConnectionConfig() { | ||
this.maxConnectionPoolSize = Configs.getDefaultHttpPoolSize(); // overlapping with the maxConnectionPoolSize in gateway connection config | ||
this.minConnectionPoolSize = DEFAULT_MIN_CONNECTION_POOL_SIZE; | ||
this.maxConcurrentStreams = DEFAULT_MAX_CONCURRENT_STREAMS; | ||
this.enabled = Configs.isHttp2Enabled(); | ||
} | ||
|
||
/*** | ||
* Get the maximum number of live connections to keep in the pool. | ||
* | ||
* @return the configured max number of live connections to keep in the pool. | ||
*/ | ||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public Integer getMaxConnectionPoolSize() { | ||
return maxConnectionPoolSize; | ||
} | ||
|
||
/*** | ||
* Configures the maximum number of live connections to keep in the pool. | ||
* If not configured, will be default to 1000. | ||
* | ||
* @param maxConnectionPoolSize the maximum number of live connections to keep in the pool. | ||
* @return the current {@link Http2ConnectionConfig}. | ||
*/ | ||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public Http2ConnectionConfig setMaxConnectionPoolSize(int maxConnectionPoolSize) { | ||
this.maxConnectionPoolSize = maxConnectionPoolSize; | ||
return this; | ||
} | ||
|
||
/*** | ||
* Get the maximum number of the concurrent streams that can be opened to the remote peer. | ||
* @return the maximum number of the concurrent streams that can be opened to the remote peer. | ||
*/ | ||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public int getMaxConcurrentStreams() { | ||
return maxConcurrentStreams; | ||
} | ||
|
||
/*** | ||
* Configures the maximum number of the concurrent streams that can be opened to the remote peer. | ||
* When evaluating how many streams can be opened to the remote peer, the minimum of this configuration and the remote peer configuration is taken (unless -1 is used). | ||
* Default to 30. | ||
* | ||
* @param maxConcurrentStreams the maximum number of the concurrent streams that can be opened to the remote peer. | ||
* @return the current {@link Http2ConnectionConfig}. | ||
*/ | ||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public Http2ConnectionConfig setMaxConcurrentStreams(int maxConcurrentStreams) { | ||
this.maxConcurrentStreams = maxConcurrentStreams; | ||
return this; | ||
} | ||
|
||
/*** | ||
* Get the minimum number of live connections to keep in the pool (can be the best effort). | ||
* @return the minimum number of live connections to keep in the pool (can be the best effort). | ||
*/ | ||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public int getMinConnectionPoolSize() { | ||
return minConnectionPoolSize; | ||
} | ||
|
||
/*** | ||
* Configures the minimum number of live connections to keep in the pool (can be the best effort). Default to 1. | ||
* @param minConnectionPoolSize the minimum number of live connections to keep in the pool (can be the best effort). | ||
* @return the current {@link Http2ConnectionConfig}. | ||
*/ | ||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public Http2ConnectionConfig setMinConnectionPoolSize(int minConnectionPoolSize) { | ||
this.minConnectionPoolSize = minConnectionPoolSize; | ||
return this; | ||
} | ||
|
||
/*** | ||
* return the flag to indicate whether http2 is enabled. | ||
* @return the flag to indicate whether http2 is enabled. | ||
*/ | ||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public boolean isEnabled() { | ||
return enabled; | ||
} | ||
|
||
/*** | ||
* Configure the flag to indicate whether http2 is enabled. | ||
* @param enabled the flag to indicate whether http2 is enabled. | ||
* @return the current {@link Http2ConnectionConfig}. | ||
*/ | ||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
public Http2ConnectionConfig setEnabled(boolean enabled) { | ||
this.enabled = enabled; | ||
return this; | ||
} | ||
|
||
@Beta(value = Beta.SinceVersion.V4_66_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) | ||
@Override | ||
public String toString() { | ||
return "Http2ConnectionConfig{" + | ||
"isEnabled=" + enabled + | ||
", maxConnectionPoolSize=" + maxConnectionPoolSize + | ||
", minConnectionPoolSize=" + minConnectionPoolSize + | ||
", maxConcurrentStreams=" + maxConcurrentStreams + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,8 @@ public enum SinceVersion { | |
/** v4.64.0 */ | ||
V4_64_0, | ||
/** v4.65.0 */ | ||
V4_65_0 | ||
V4_65_0, | ||
/** v4.66.0 */ | ||
V4_66_0 | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove the comments