// notify the remote token
Message msg = new Message(local, StorageService.Verb.REPLICATION_FINISHED, new byte[0]);
IFailureDetector failureDetector = FailureDetector.instance;
while (failureDetector.isAlive(remote))
{
IAsyncResult iar = MessagingService.instance.sendRR(msg, remote);
try
{
iar.get(DatabaseDescriptor.getRpcTimeout(), TimeUnit.MILLISECONDS);
return; // done
}
catch(TimeoutException e)
{
// try again