version 3.0.x and SdkClient.close usage #690
-
Hello everyone. I noticed that Spring Cloud Stream 3.0.x does not close these clients, at least not when using it. Probably there is a cleanup when stopping (cannot find it though). So I am wondering: is it done this way because, after all, it is not necessary to close those clients? In particular I am interested in S3Client. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @apetrelli! If an object that is a Spring bean has a method named "close", Spring automatically calls it when context gets closed, so I think we are good considering that all the clients are Spring beans. Did you notice that the clients are not getting closed? |
Beta Was this translation helpful? Give feedback.
Hello @apetrelli! If an object that is a Spring bean has a method named "close", Spring automatically calls it when context gets closed, so I think we are good considering that all the clients are Spring beans.
Did you notice that the clients are not getting closed?