SDK Clients are Closeable
and documented as thread safe but don't provide an isClosed()
method
#5235
Labels
feature-request
A feature should be added or improved.
Describe the bug
Because SDK clients are
Closeable
they might be auto-closed if placed in a "try with resources" block. The SDK documentation encourages re-use of clients and advertises them as thread safe. This can mean another thread or a try with resources block might close a client without you realizing. Unfortunately you cannot check if the client is still open because there is noisClosed()
method.Expected Behavior
Ability to determine if a client is closed.
Current Behavior
No ability to determine if a client is closed (without making an API call).
Reproduction Steps
The text was updated successfully, but these errors were encountered: