PeerStatistic peerStatatistic = maintainable.nextForMaintenance(runningFutures.values());
if(peerStatatistic == null) {
continue;
}
BaseFuture future = peer.ping().peerAddress(peerStatatistic.peerAddress()).start();
LOG.debug("maintenance ping from {} to {}", peer.peerAddress(), peerStatatistic.peerAddress());
peer.notifyAutomaticFutures(future);
runningFutures.put(future, peerStatatistic.peerAddress());
COUNTER.incrementAndGet();
future.addListener(new BaseFutureAdapter<BaseFuture>() {