private class BatchPushCountersTask implements Runnable {
@Override
public void run() {
try {
final Repository instance = Repository.INSTANCE;
pushCountersByBatch(instance.counters());
clearCountersIfNeeded(instance);
} catch (final Exception e) {
LOGGER.log(Level.SEVERE, e.getMessage(), e);
}
}