Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.rakiura.mbot
Class LimitThread  view LimitThread download LimitThread.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.rakiura.mbot.LimitThread
All Implemented Interfaces:
java.lang.Runnable

public class LimitThread
extends java.lang.Thread

Thread for managing +l updates on different channels.

LimitThread.java Created: Wed Jul 14 16:59:28 1999

Version:
0.3 $Revision: 1.1.1.1 $

Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.util.Vector channels
           
private  java.util.Hashtable current_limit
           
private  long delay
           
private  Engine engine
           
private  int limit
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LimitThread(Engine engine)
           
LimitThread(Engine engine, java.util.Vector chan)
           
 
Method Summary
 void addChannel(java.lang.String chan)
           
 java.util.Vector getChannels()
          Get the value of channels.
 long getDelay()
          Get the value of delay.
 int getLimit()
          Get the value of limit.
 void removeChannel(java.lang.String chan)
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 long setDelay(long v)
          Set the value of delay.
 int setLimit(int v)
          Set the value of limit.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

engine

private Engine engine

limit

private int limit

channels

private java.util.Vector channels

delay

private long delay

current_limit

private java.util.Hashtable current_limit
Constructor Detail

LimitThread

public LimitThread(Engine engine)

LimitThread

public LimitThread(Engine engine,
                   java.util.Vector chan)
Method Detail

getLimit

public int getLimit()
Get the value of limit.


setLimit

public int setLimit(int v)
Set the value of limit.


getChannels

public java.util.Vector getChannels()
Get the value of channels.


addChannel

public void addChannel(java.lang.String chan)

removeChannel

public void removeChannel(java.lang.String chan)

getDelay

public long getDelay()
Get the value of delay.


setDelay

public long setDelay(long v)
Set the value of delay.


run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.