org.walluck.oscar
Class ReceiveQueueThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.walluck.oscar.ReceiveQueueThread
All Implemented Interfaces:
java.lang.Runnable

public class ReceiveQueueThread
extends java.lang.Thread

The thread that handles receiving incoming packets.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ReceiveQueueThread(AIMSession sess, AIMConnection conn)
          Creates a new receive queue thread.
 
Method Summary
 void flush()
          Flush the queue.
 void run()
          The run method for the receive queue thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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

ReceiveQueueThread

public ReceiveQueueThread(AIMSession sess,
                          AIMConnection conn)
Creates a new receive queue thread.

Parameters:
sess - the oscar session
conn - the connection for this session
Method Detail

flush

public void flush()
Flush the queue.


run

public void run()
The run method for the receive queue thread.

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).