chiradip opened a new issue, #2210:
URL: https://github.com/apache/iggy/issues/2210

   **Title:** `[Java SDK] Add AutoCloseable support and proper cleanup`
   
   **Description:**
   Current clients don't implement AutoCloseable and lack proper cleanup 
methods.
   
   **Proposed Solution:**
   ```java
   public interface IggyClient extends AutoCloseable {
       void connect() throws IggyException;
       void close() throws IggyException;
       boolean isConnected();
   
       // Health check
       CompletableFuture<HealthStatus> healthCheck();
   }
   
   // Usage with try-with-resources
   try (IggyClient client = IggyClient.builder().build()) {
       // Use client
   } // Automatic cleanup
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to