org.jboss.messaging.integration.transports.netty
Class HttpKeepAliveTask

java.lang.Object
  extended by java.util.TimerTask
      extended by org.jboss.messaging.integration.transports.netty.HttpKeepAliveTask
All Implemented Interfaces:
java.lang.Runnable

public class HttpKeepAliveTask
extends java.util.TimerTask

A simple Timer Task to allow HttpAcceptorHandlers to be called intermittently.

Author:
Andy Taylor

Constructor Summary
HttpKeepAliveTask()
           
 
Method Summary
 boolean cancel()
           
 void registerKeepAliveHandler(org.jboss.messaging.integration.transports.netty.HttpAcceptorHandler httpAcceptorHandler)
           
 void run()
           
 void unregisterKeepAliveHandler(org.jboss.messaging.integration.transports.netty.HttpAcceptorHandler httpAcceptorHandler)
           
 
Methods inherited from class java.util.TimerTask
scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpKeepAliveTask

public HttpKeepAliveTask()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

registerKeepAliveHandler

public void registerKeepAliveHandler(org.jboss.messaging.integration.transports.netty.HttpAcceptorHandler httpAcceptorHandler)

unregisterKeepAliveHandler

public void unregisterKeepAliveHandler(org.jboss.messaging.integration.transports.netty.HttpAcceptorHandler httpAcceptorHandler)

cancel

public boolean cancel()
Overrides:
cancel in class java.util.TimerTask


Copyright © 2006 JBoss Inc. All Rights Reserved.