if (t != null && t.timeout()) {
LOGGER.debug("Retry for message with ID {}", coapMsg.requestId());
session.write(coapMsg);
} else {
// abort transmission
LOGGER.debug("No more retry for message with ID {}", coapMsg.requestId());
}
}
}, t.getNextTimeout(), TimeUnit.MILLISECONDS);
t.setRetryFuture(future);