@classmethod
def _connection_info(cls):
    """
        Return a dictionary containing the connection info based on
        `config_host` and `config_port` or `config_uri`. If `config_uri` is
        specified, it takes precedence.

        """
    if cls.config_uri:
        return {'host': cls.config_uri}
    return {'host': cls.config_host, 'port': cls.config_port}
