How to handle connection timeouts and retries in GridDB Java client?

4 days ago 7
ARTICLE AD BOX

I’m working with GridDB using the Java client and noticed that sometimes the connection fails due to timeouts or temporary network issues.

Currently, I’m creating a connection like this:

Properties props = new Properties(); props.setProperty("notificationAddress", "239.0.0.1"); props.setProperty("notificationPort", "31999"); props.setProperty("clusterName", "myCluster"); props.setProperty("user", "admin"); props.setProperty("password", "admin"); GridStore store = GridStoreFactory.getInstance().getGridStore(props);

However, if the connection fails, the application throws an exception and doesn’t retry.

Read Entire Article