Migrate the Ignite 2 thin client configuration to IgniteClient.builder()
MSALIgnite 3 builds a thin client with IgniteClient.builder() instead of starting one from a ClientConfiguration with Ignition.startClient. The addresses, the address finder, the user name and password, the heartbeat interval, the async continuation executor and the built-in retry policies move to the builder; the timeout becomes both the connect and the operation timeout, as it was used for both in Ignite 2; partition awareness is dropped, as Ignite 3 always uses it. Note that Ignite 3 retries only reads by default, where Ignite 2 retried every operation. A configuration that sets anything else, uses an address with a port range, or is built where this recipe cannot follow it, is left as it is with a comment.
org. openrewrite. apache. ignite. MigrateThinClientConfigurationmod run . --recipe= org. openrewrite. apache. ignite. MigrateThinClientConfigurationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.