public Long getSimpleCounter(DaoOperations context, PropertyMeta counterMeta, ConsistencyLevel consistencyLevel) {
if (log.isDebugEnabled()) {
log.debug("Get simple counter value for counterMeta '{}' PersistenceContext '{}' using Consistency level '{}'", counterMeta, context, consistencyLevel);
}
PreparedStatement ps = counterQueryMap.get(SELECT);
BoundStatementWrapper bsWrapper = binder.bindForSimpleCounterSelect(context, ps, counterMeta, consistencyLevel);
final ListenableFuture<ResultSet> resultSetFuture = context.executeImmediate(bsWrapper);
final ListenableFuture<Row> futureRow = asyncUtils.transformFuture(resultSetFuture, RESULTSET_TO_ROW, executorService);
final Row row = asyncUtils.buildInterruptible(futureRow).getImmediately();
return rowToLongFunction(ACHILLES_COUNTER_VALUE).apply(row);
}