com.lyrisoft.chat.server.remote
Class Vulture

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.lyrisoft.chat.server.remote.Vulture
All Implemented Interfaces:
Constants, java.lang.Runnable

public class Vulture
extends java.lang.Thread
implements Constants

The Vulture periodically scans the userlist and boots clients who have been idle longer than a specified timeout.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface com.lyrisoft.chat.Constants
SERVER_NAME
 
Constructor Summary
Vulture(ChatServer server, double timeout)
           
 
Method Summary
 void addClient(ChatClient c)
           
 void pleaseStop()
           
 void removeClient(ChatClient c)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Constructor Detail

Vulture

public Vulture(ChatServer server,
               double timeout)
Parameters:
timeout - idle timeout, in minutes
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

pleaseStop

public void pleaseStop()

addClient

public void addClient(ChatClient c)

removeClient

public void removeClient(ChatClient c)


Copyright © 2000-2002 Taso Lyristis