|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.httpd.Queue
public class Queue
This class defines the Queue in which sockets are placed temporarily by httpd. AbstractHttpHandlers look here for the next socket to handle. These handlers are cratead and their threads started up during construction of the class and placed in a threadPool.
| Constructor Summary | |
|---|---|
Queue(int maxQLength,
int minNumThreads,
int maxNumThreads)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(java.net.Socket socket)
The proper way of adding sockets to the queue. |
java.net.Socket |
getNextSocket()
Method used for retrieving next item in the queue. |
void |
shutdown()
Methods for shutting down the queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Queue(int maxQLength,
int minNumThreads,
int maxNumThreads)
maxQLength - The size of the queueminNumThreads - The minimum number of SocketHandler threads active.maxNumThreads - The maximum number of SocketHandler threads.| Method Detail |
|---|
public void add(java.net.Socket socket)
throws QueueException
socket - The socket to be added to the queue.
QueueExceptionpublic java.net.Socket getNextSocket()
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||