chiradip opened a new issue, #2202:
URL: https://github.com/apache/iggy/issues/2202
**Title:** `[Java SDK] Implement builder pattern for IggyClient
configuration`
**Description:**
Current SDK requires direct instantiation with limited configuration
options. A builder pattern would provide better developer experience and
configuration management.
**Current State:**
```java
IggyTcpClient client = new IggyTcpClient("localhost", 8090);
client.users().login("iggy", "iggy");
// No other configuration options
```
**Proposed Solution:**
```java
IggyClient client = IggyClient.builder()
.host("localhost")
.port(8090)
.credentials("iggy", "iggy")
.connectionTimeout(Duration.ofSeconds(30))
.requestTimeout(Duration.ofSeconds(10))
.connectionPoolSize(10)
.retryPolicy(RetryPolicy.exponentialBackoff())
.build();
```
**Benefits:**
- Cleaner API
- Better configuration management
- Support for connection pooling
- Retry policies
--
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]