@Start public void start() { Log.info(greetMessage); scheduledThreadPool.scheduleAtFixedRate( new Runnable() { @Override public void run() { hello.send(greetMessage, null); } }, 0, 5, TimeUnit.SECONDS); }
@Update public void update() { Log.info("Update: {}", greetMessage); }
@Stop public void stop() { Log.info("Bye, world!"); scheduledThreadPool.shutdown(); }