Package fi.iki.elonen
Class NanoHTTPD.DefaultAsyncRunner
java.lang.Object
fi.iki.elonen.NanoHTTPD.DefaultAsyncRunner
- All Implemented Interfaces:
NanoHTTPD.AsyncRunner
- Enclosing class:
NanoHTTPD
Default threading strategy for NanoHTTPD.
By default, the server spawns a new Thread for every incoming request. These are set to daemon status, and named according to the request number. The name is useful when profiling the application.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
closeAll()
void
closed
(NanoHTTPD.ClientHandler clientHandler) void
exec
(NanoHTTPD.ClientHandler clientHandler)
-
Field Details
-
requestCount
private long requestCount -
running
-
-
Constructor Details
-
DefaultAsyncRunner
public DefaultAsyncRunner()
-
-
Method Details
-
getRunning
- Returns:
- a list with currently running clients.
-
closeAll
public void closeAll()- Specified by:
closeAll
in interfaceNanoHTTPD.AsyncRunner
-
closed
- Specified by:
closed
in interfaceNanoHTTPD.AsyncRunner
-
exec
- Specified by:
exec
in interfaceNanoHTTPD.AsyncRunner
-