@ChannelHandler.Sharable
public class UserAgentReaperHandler
extends io.netty.channel.ChannelHandlerAdapter
UserAgentReaper| Constructor and Description |
|---|
UserAgentReaperHandler(org.jboss.aerogear.simplepush.server.SimplePushServer simplePushServer)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelReaper()
Cancels the reaper job if it is active.
|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
boolean |
started()
Returns true if the reaper job has started.
|
public UserAgentReaperHandler(org.jboss.aerogear.simplepush.server.SimplePushServer simplePushServer)
simplePushServer - the SimplePushServer that this reaper will operate on.public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterExceptionpublic boolean started()
true if the reaper job has started, false otherwise.public void cancelReaper()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.