class Jdk14ThreadPool.PoolManager extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) LinkedList<Jdk14ThreadPool.WorkerThread> |
busyQueue |
(专用程序包) LinkedList<Jdk14ThreadPool.WorkerThread> |
idleQueue |
(专用程序包) int |
maxPoolSize |
(专用程序包) int |
poolSize |
| 构造器和说明 |
|---|
PoolManager(int maxPoolSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) Jdk14ThreadPool.WorkerThread |
borrow() |
(专用程序包) void |
destroy() |
(专用程序包) void |
destroy(Jdk14ThreadPool.WorkerThread workerThread) |
(专用程序包) void |
giveback(Jdk14ThreadPool.WorkerThread workerThread) |
(专用程序包) void |
retain(int n) |
final LinkedList<Jdk14ThreadPool.WorkerThread> idleQueue
final LinkedList<Jdk14ThreadPool.WorkerThread> busyQueue
final int maxPoolSize
volatile int poolSize
void giveback(Jdk14ThreadPool.WorkerThread workerThread)
Jdk14ThreadPool.WorkerThread borrow()
void destroy()
void retain(int n)
void destroy(Jdk14ThreadPool.WorkerThread workerThread)
Copyright © 2020. All rights reserved.