org.starhope.appius.services
Class Clodia

java.lang.Object
  extended by java.lang.Thread
      extended by org.starhope.appius.services.Clodia
All Implemented Interfaces:
Comparable<Thread>, Runnable
Direct Known Subclasses:
ClodiaSecunda

public class Clodia
extends Thread
implements Comparable<Thread>

WRITEME: Document this type.

Author:
brpocock@star-hope.org

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean giveUp
          When to give up on loading more
private  Thread myParent
          Parent thread; if it stops, we stop.
protected  GeneralUser myUser
          The user whose lists are being loaded
private static Collection<Integer> userIDs
          The set of user ID:s
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Clodia(GeneralUser who, Thread parentThread)
          WRITEME: Document this constructor brpocock@star-hope.org
 
Method Summary
 int compareTo(Thread arg0)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void quit()
          WRITEME: Document this method brpocock@star-hope.org
 boolean readyToGiveUp()
           
 void run()
           
 void sendList(String whichList, List<UserListEntry> users)
          WRITEME: Document this method brpocock@star-hope.org
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

myUser

protected final GeneralUser myUser
The user whose lists are being loaded


giveUp

private boolean giveUp
When to give up on loading more


myParent

private final Thread myParent
Parent thread; if it stops, we stop.


userIDs

private static Collection<Integer> userIDs
The set of user ID:s

Constructor Detail

Clodia

public Clodia(GeneralUser who,
              Thread parentThread)
WRITEME: Document this constructor brpocock@star-hope.org

Parameters:
who - WRITEME
parentThread - parent thread
Method Detail

compareTo

public int compareTo(Thread arg0)
Specified by:
compareTo in interface Comparable<Thread>
See Also:
Comparable.compareTo(java.lang.Object)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

quit

public void quit()
WRITEME: Document this method brpocock@star-hope.org


readyToGiveUp

public boolean readyToGiveUp()
Returns:
true, when we can stop

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()

sendList

public void sendList(String whichList,
                     List<UserListEntry> users)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
whichList - the list name
users - users on that list