public class WorkerThreadPool extends Thread implements AutoCloseable
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
WorkerThreadPool(int maximumPoolSize,
long keepAliveTimeSeconds,
cn.ponfee.scheduler.core.base.SupervisorService supervisorClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
run() |
boolean |
submit(cn.ponfee.scheduler.core.param.ExecuteParam param)
Submit task execution param to thread pool
|
String |
toString() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldpublic WorkerThreadPool(int maximumPoolSize,
long keepAliveTimeSeconds,
cn.ponfee.scheduler.core.base.SupervisorService supervisorClient)
public boolean submit(cn.ponfee.scheduler.core.param.ExecuteParam param)
param - the execution paramtrue if thread pool acceptedpublic void close()
close 在接口中 AutoCloseableCopyright © 2023. All rights reserved.