org.nanohttpd.protocols.http.threading.IAsyncRunner
public class PooledAsyncRunner
extends java.lang.Object
implements org.nanohttpd.protocols.http.threading.IAsyncRunner
IAsyncRunner
implementation which uses some ExecutorService
to launch new threads;
depending on the constructor arguments, it is either (unlimited) CachedThreadPool
or FixedThreadPool with a predefined upper limit.Modifier and Type | Class | Description |
---|---|---|
static class |
PooledAsyncRunner.CustomThreadFactory |
Modifier and Type | Method | Description |
---|---|---|
void |
closeAll() |
|
void |
closed(org.nanohttpd.protocols.http.ClientHandler clientHandler) |
|
void |
exec(org.nanohttpd.protocols.http.ClientHandler clientHandler) |
public void closeAll()
closeAll
in interface org.nanohttpd.protocols.http.threading.IAsyncRunner
public void closed(org.nanohttpd.protocols.http.ClientHandler clientHandler)
closed
in interface org.nanohttpd.protocols.http.threading.IAsyncRunner
public void exec(org.nanohttpd.protocols.http.ClientHandler clientHandler)
exec
in interface org.nanohttpd.protocols.http.threading.IAsyncRunner