private static final ExecutorService EXEC_SVC = Executors
.newSingleThreadExecutor();
public static void main(String[] args) throws Exception {
final Announcer a = new Announcer();
EXEC_SVC.submit(new Callable<Void>() {
@Override
public Void call() throws Exception {
try {
a.announce(30, 1, TimeUnit.SECONDS);
} catch (Exception e) {
LOGGER.error("IP announcement failed", e);
}
return null;
}