public class ReceiveQueueThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ReceiveQueueThread(AIMSession sess,
AIMConnection conn)
Creates a new receive queue thread.
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flush the queue.
|
void |
run()
The run method for the receive queue thread.
|
activeCount, checkAccess, clone, 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
public ReceiveQueueThread(AIMSession sess, AIMConnection conn)
sess
- the oscar sessionconn
- the connection for this sessionpublic void flush()
public void run()
This handles an incoming frame, if one is present, or else it sleeps for the harcoded amount of milliseconds (I don't see any advantage to being able to change the sleep time).