|
AeroGear SimplePush Server Netty 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectio.netty.channel.ChannelHandlerAdapter
org.jboss.aerogear.simplepush.server.netty.UserAgentReaperHandler
@ChannelHandler.Sharable public class UserAgentReaperHandler
UserAgentReaperHandler is responsible for starting a single scheduled job that will clean up inactive user agents.
UserAgentReaper| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler |
|---|
io.netty.channel.ChannelHandler.Sharable, io.netty.channel.ChannelHandler.Skip |
| Constructor Summary | |
|---|---|
UserAgentReaperHandler(org.jboss.aerogear.simplepush.server.SimplePushServer simplePushServer)
Sole constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class io.netty.channel.ChannelHandlerAdapter |
|---|
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelWritabilityChanged, close, connect, disconnect, exceptionCaught, flush, handlerRemoved, isSharable, read, userEventTriggered, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserAgentReaperHandler(org.jboss.aerogear.simplepush.server.SimplePushServer simplePushServer)
simplePushServer - the SimplePushServer that this reaper will operate on.| Method Detail |
|---|
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()
|
AeroGear SimplePush Server Netty 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||