Use @link not @inheritdoc
Use TimeUnit rather than hardcoded numbers
If the hostname can't be found, keep the old one for 1 second and retry