public interface BZip2EncoderExecutorService
The executor service spreads the work over all threads available to it. If a
BZip2OutputStream
submits more work when all threads are busy, the
call blocks until the next thread becomes available.
When the client is done using the executor, it must call shutdown()
to release all of its resources.
An executor service instance can be had from the
BZip2OutputStream.createExecutorService(int)
method.
This interface does not expose any methods except the shutdown()
method and there is no way of making a custom executor service
implementation.
Modifier and Type | Method and Description |
---|---|
void |
shutdown()
This method should be called when the executor service is no longer
needed.
|