This is an example of how to connect to a custom set of hosts and ports.
First, we need to obtain a connector and keep a singleton reference to it.
It's really important to guarantee we are using a singleton here, otherwise
we will end up spawning a cluster on every call.
This is an example of how to connect to a custom set of hosts and ports. First, we need to obtain a connector and keep a singleton reference to it. It's really important to guarantee we are using a singleton here, otherwise we will end up spawning a cluster on every call.