public void run()
{
undelivered.remove(ep);
}
};
WriteResponseHandler handler = new WriteResponseHandler(ep, WriteType.UNLOGGED_BATCH, callback);
MessagingService.instance().sendRR(mutation.createMessage(), ep, handler);
handlers.add(handler);
}
// Wait for all the requests to complete.
for (WriteResponseHandler handler : handlers)
{
try
{
handler.get();
}
catch (WriteTimeoutException e)
{
logger.debug("Timed out replaying a batched mutation to a node, will write a hint");
}