is introduced mainly to be able to cope with temporary network connection issues.
<T> Client instance type.
Initializes the client connection. This should only be done initially.. The idea is that if we end up with an issue
during initial connection setup the user can choose to abort.
void setup() throws TException;
Gets our client instance.
Logs an exception as a result of using the returned client. Based on the exception we can decide to re-initialize
the client/connection to deal with for example temporary network connectivity issues.
exception Thrift exception.
- New client instance in case we decided the exception could be dealt with by making a new client insance.
null in case we decided a new client would not resolve the exception.
Closes the client. Once closed it will probably not be usable anymore.