The Server Classes
As explained in
“Runnable Servers” a runnable server is a threaded runnable that accepts and queues any number of runnable objects and executes them within its own internal thread or threads.
The runnable server classes include:
The
RWRunnableServer do-loop performs the following operations until a termination condition (cancellation or stop) occurs:
— Get the next available runnable (may block).
— Check for a termination condition.
— Execute the runnable.
The
RWServerPool do-loop performs the following operations until a termination condition (cancellation or stop) occurs:
— Get the next available runnable (may block).
— Check for a termination condition.
— Get the next available runnable server (may block).
— Check for a termination condition.
— Enqueue the runnable on the runnable server.