cassandraClient.getLastSuccessTime() is by default 0.
Connection is not closed in case of no transaction was handled with this client.
So maxLastSuccessTimeMillis setting does not work in this case.

Solution would be to set the initial value lastSuccessTime to System.currentTimeMillis() as done with createdTime in HThriftClient