twcore.core
Class MessageLimiter

java.lang.Object
  |
  +--twcore.core.MessageLimiter

public class MessageLimiter
extends java.lang.Object


Constructor Summary
MessageLimiter(twcore.core.BotAction botAction, twcore.core.SubspaceBot bot, int rate)
          Creates a new instance of MessageLimiter
 
Method Summary
 void handleEvent(twcore.core.Message event)
           
 void recordTime(java.lang.String name)
           
 void reduce(long difference)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageLimiter

public MessageLimiter(twcore.core.BotAction botAction,
                      twcore.core.SubspaceBot bot,
                      int rate)
Creates a new instance of MessageLimiter

Method Detail

handleEvent

public void handleEvent(twcore.core.Message event)

reduce

public void reduce(long difference)

recordTime

public void recordTime(java.lang.String name)