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 TypeMethodDescriptionvoidcloseAll()voidclosed(NanoHTTPD.ClientHandler clientHandler) voidexec(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:
closeAllin interfaceNanoHTTPD.AsyncRunner
-
closed
- Specified by:
closedin interfaceNanoHTTPD.AsyncRunner
-
exec
- Specified by:
execin interfaceNanoHTTPD.AsyncRunner
-