f00f.net.irc.martyr
Class TimerTaskCommand

java.lang.Object
  extended by java.util.TimerTask
      extended by f00f.net.irc.martyr.TimerTaskCommand
All Implemented Interfaces:
java.lang.Runnable

public class TimerTaskCommand
extends java.util.TimerTask

This class delays sending a command to the IRC connection.

Author:
Morgan Christiansson

Constructor Summary
TimerTaskCommand(IRCConnection conn, OutCommand cmd)
           
 
Method Summary
 boolean cancel()
           
 boolean isScheduled()
           
 void run()
           
 
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

TimerTaskCommand

public TimerTaskCommand(IRCConnection conn,
                        OutCommand cmd)
Method Detail

run

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

cancel

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

isScheduled

public boolean isScheduled()
Returns:
true if the command has yet to run or is running, false otherwise.


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.