public final class ThreadPool extends Object
NOT implement the Executor interface unless we see the necessity
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ThreadPool.StatInfo |
| 构造器和说明 |
|---|
ThreadPool(int initialThreadNum,
ThreadFactory threadFactory) |
ThreadPool(int initialThreadNum,
ThreadFactory threadFactory,
int queueSize) |
public ThreadPool(int initialThreadNum,
ThreadFactory threadFactory)
public ThreadPool(int initialThreadNum,
ThreadFactory threadFactory,
int queueSize)
public void stop()
public void join()
public boolean submit(Runnable task)
public long submit(Runnable[] tasks, int offset, int len)
public ThreadPool.StatInfo getStatInfo()
public boolean isStopped()
Copyright © 2019 Baidu, Inc.. All rights reserved.