Thread.State, Thread.UncaughtExceptionHandler
限定符和类型 | 字段和说明 |
---|---|
boolean |
isExit |
static long |
TimeOutMS |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
构造器和说明 |
---|
SubprocessThread(ArrayList<String> arguments) |
SubprocessThread(ArrayList<String> arguments,
ProcessMessageListener listener)
构建与子进程关联的线程对象。
|
限定符和类型 | 方法和说明 |
---|---|
void |
destroyps() |
long |
getM_start() |
Process |
getProcess() |
void |
run() |
void |
timeout()
判断是否超时,如果超时kill掉,默认超时时间为60分钟,超过60分钟Kill之
|
activeCount, checkAccess, 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, toString, yield
public SubprocessThread(ArrayList<String> arguments, ProcessMessageListener listener)
arguments
- 创建子进程时传入的参数。listener
- 外部与子进程消息处理监听类实例。Copyright © 2021–2024 SuperMap. All rights reserved.