RequestQueue

The request queue is an interface that defines the basic enqueue and dequeue methods to add a socket to the queue (the server does this), and remove a socket from the queue (workers do this).

Members

Functions

dequeue
Socket dequeue()

Attempts to remove a socket from the queue. This method may cause the calling thread to block for some amount of time until a socket is available to obtain.

enqueue
void enqueue(Socket s)

Adds the given socket to the queue.