Skip to content

Commit 7d02a4c

Browse files
alexw91millems
authored andcommitted
Update JavaDocs
1 parent 87d92b0 commit 7d02a4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

http-clients/aws-crt-client/src/main/java/software/amazon/awssdk/http/crt/AwsCrtAsyncHttpClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ public AwsCrtAsyncHttpClient(DefaultBuilder builder, AttributeMap config) {
8383
Validate.isPositive(builder.windowSize, "windowSize");
8484

8585
/**
86-
* Must add to List in reverse order that they were created in, so that they are closed in the correct order.
86+
* Must call own() in same order that CrtResources are created in, so that they will be closed in reverse order.
8787
*
88-
* Do NOT use Dependency Injection for Native Resources. It's possible to crash the JVM Process if Native
89-
* Dependencies are closed in the wrong order (Eg closing the Bootstrap/Threadpool when there are still open
90-
* connections). By creating and owning our own Native Resources we can guarantee that things are shutdown in
91-
* the correct order.
88+
* Do NOT use Dependency Injection for Native CrtResources. It's possible to crash the JVM Process if Native
89+
* Resources are closed in the wrong order (Eg closing the Bootstrap/Threadpool when there are still open
90+
* connections). By creating and owning our own Native CrtResources we can guarantee that things are shutdown
91+
* in the correct order.
9292
*/
9393

9494
bootstrap = own(new ClientBootstrap(builder.eventLoopSize));

0 commit comments

Comments
 (0)