public class DefaultAsyncRunner extends Object implements IAsyncRunner
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.
| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
requestCount |
| 构造器和说明 |
|---|
DefaultAsyncRunner() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeAll() |
void |
closed(ClientHandler clientHandler) |
protected Thread |
createThread(ClientHandler clientHandler) |
void |
exec(ClientHandler clientHandler) |
List<ClientHandler> |
getRunning() |
public List<ClientHandler> getRunning()
public void closeAll()
closeAll 在接口中 IAsyncRunnerpublic void closed(ClientHandler clientHandler)
closed 在接口中 IAsyncRunnerpublic void exec(ClientHandler clientHandler)
exec 在接口中 IAsyncRunnerprotected Thread createThread(ClientHandler clientHandler)
Copyright © 2012–2020 nanohttpd. All rights reserved.