net.jackofalltrades.irc.impl
Class PrefixCacheCleaner

java.lang.Object
  extended bynet.jackofalltrades.irc.event.IrcCommandAdapter
      extended bynet.jackofalltrades.irc.impl.PrefixCacheCleaner
All Implemented Interfaces:
java.util.EventListener, IrcCommandListener

public class PrefixCacheCleaner
extends IrcCommandAdapter

Provides mechanism to clean out the IrcPrefix cache when a user quits IRC.

 // presuming an IrcConnection has already been created named 'connection'.
 connection.addIrcCommandListener(IrcConstants.QUIT, new PrefixCacheCleaner());
 

Since:
0.5-alpha
Version:
1.0
Author:
Bradley M. Handy

Constructor Summary
PrefixCacheCleaner()
          Creates a new PrefixCacheCleaner.
 
Method Summary
 void commandReceived(IrcCommandEvent event)
          Listens for the "QUIT" command and removes the prefix associated with the command from the prefix cache.
 
Methods inherited from class net.jackofalltrades.irc.event.IrcCommandAdapter
commandPrepared
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixCacheCleaner

public PrefixCacheCleaner()
Creates a new PrefixCacheCleaner.

Method Detail

commandReceived

public void commandReceived(IrcCommandEvent event)
Listens for the "QUIT" command and removes the prefix associated with the command from the prefix cache.

Specified by:
commandReceived in interface IrcCommandListener
Overrides:
commandReceived in class IrcCommandAdapter


Copyright © 2002-2003 Jack-of-all-trades Programming Services. All Rights Reserved.