int i = 0;
boundStatement.setString(i++, agentRollupId);
boundStatement.setString(i++, transactionType);
boundStatement.setString(i++, traceAttributeName);
boundStatement.setInt(i++, getMaxTTL());
<BUG>futures.add(Sessions.executeAsyncWithOnFailure(session, boundStatement,

() -> rateLimiter.invalidate(rateLimiterKey)));
}</BUG>
private int getMaxTTL() throws Exception {

int i = 0;
boundStatement.setString(i++, agentRollupId);
boundStatement.setString(i++, transactionType);
boundStatement.setString(i++, traceAttributeName);
boundStatement.setInt(i++, getMaxTTL());
ResultSetFuture future = Sessions.executeAsyncWithOnFailure(session, boundStatement,
() -> rateLimiter.invalidate(rateLimiterKey));
future.addListener(() -> cache.invalidate(SINGLE_CACHE_KEY),
MoreExecutors.directExecutor());
futures.add(future);
cache.invalidate(SINGLE_CACHE_KEY);
}
private int getMaxTTL() throws Exception {
