Interface ClientAddressFinder

  • All Known Implementing Classes:
    ThinClientKubernetesAddressFinder

    public interface ClientAddressFinder
    This interface provides a list of addresses of Ignite server nodes within a cluster. Thin client uses the list to route user requests. There are cases when the list is not static, for example in cloud environment. In such cases addresses of nodes and/or number of server nodes can change. Implementation of this interface should handle these. Ignite waits for a topology change to trigger getAddresses(). There are two modes of how soon Ignite calls it, lazy and eager, depending on whether the partition awareness feature is enabled. If the feature is enabled then Ignite calls the method for every topology change. Otherwise Ignite uses previous addresses until a first failure. ClientConfiguration.setPartitionAwarenessEnabled(boolean) ClientConfiguration.setAddressesFinder(ClientAddressFinder)