Class IdentityTranslator

    • Constructor Detail

      • IdentityTranslator

        public IdentityTranslator()
    • Method Detail

      • init

        public void init​(Cluster cluster)
        Description copied from interface: AddressTranslator
        Initializes this address translator.
        Specified by:
        init in interface AddressTranslator
        Parameters:
        cluster - the Cluster instance for which the translator is created.
      • translate

        public InetSocketAddress translate​(InetSocketAddress address)
        Translates a Cassandra rpc_address to another address if necessary.

        This method is the identity function, it always return the address passed in argument, doing no translation.

        Specified by:
        translate in interface AddressTranslator
        Parameters:
        address - the address of a node as returned by Cassandra.
        Returns:
        address unmodified.