public void handlerAdded(final ChannelHandlerContext ctx) throws Exception {
if (started()) {
return;
}
final SimplePushServerConfig config = simplePushServer.config();
logger.info("Creating UserAgentReaper job : " + config.userAgentReaperTimeout());
scheduleFuture = ctx.executor().scheduleAtFixedRate(new UserAgentReaper(simplePushServer),
config.userAgentReaperTimeout(),
config.userAgentReaperTimeout(),
TimeUnit.MILLISECONDS);
reaperStarted.set(true);