net.sf.ircappender.impl
Class LogToIrcForwarder

java.lang.Object
  extended by net.sf.ircappender.impl.LogToIrcForwarder
All Implemented Interfaces:
java.lang.Runnable

public class LogToIrcForwarder
extends java.lang.Object
implements java.lang.Runnable

forwards log events from the queue to the IRC connection

Author:
hendrik

Constructor Summary
LogToIrcForwarder(IrcConnection ircConnection, Fifo eventQueue, long messageDelay, java.lang.String channel)
          creates a new LogToIrcForwarder
 
Method Summary
 void run()
          a thread forwarding messages from the log event queue to IRC
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogToIrcForwarder

public LogToIrcForwarder(IrcConnection ircConnection,
                         Fifo eventQueue,
                         long messageDelay,
                         java.lang.String channel)
creates a new LogToIrcForwarder

Parameters:
ircConnection - the irc connection to send messages to
eventQueue - the event queue with log events to process
messageDelay - the delay between messages to prevent excess flood kills
channel - the channel to post to
Method Detail

run

public void run()
a thread forwarding messages from the log event queue to IRC

Specified by:
run in interface java.lang.Runnable