timeoutID = vertx.setTimer(pingReplyInterval, id2 -> {
// Didn't get pong in time - consider connection dead
log.warn("No pong from server " + serverID + " - will consider it dead");
close(true);
});
MessageImpl pingMessage = new MessageImpl<>(serverID, PING_ADDRESS, null, null, null, new PingMessageCodec(), true);
socket.write(pingMessage.encodeToWire());
});
}