AeroGear SimplePush Server Netty 0.11.0

org.jboss.aerogear.simplepush.server.netty
Class UserAgentReaperHandler

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by org.jboss.aerogear.simplepush.server.netty.UserAgentReaperHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler

@ChannelHandler.Sharable
public class UserAgentReaperHandler
extends io.netty.channel.ChannelHandlerAdapter

UserAgentReaperHandler is responsible for starting a single scheduled job that will clean up inactive user agents.

See Also:
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

UserAgentReaperHandler

public UserAgentReaperHandler(org.jboss.aerogear.simplepush.server.SimplePushServer simplePushServer)
Sole constructor.

Parameters:
simplePushServer - the SimplePushServer that this reaper will operate on.
Method Detail

handlerAdded

public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
                  throws Exception
Specified by:
handlerAdded in interface io.netty.channel.ChannelHandler
Overrides:
handlerAdded in class io.netty.channel.ChannelHandlerAdapter
Throws:
Exception

started

public boolean started()
Returns true if the reaper job has started.

Returns:
true if the reaper job has started, false otherwise.

cancelReaper

public void cancelReaper()
Cancels the reaper job if it is active.


AeroGear SimplePush Server Netty 0.11.0

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.