Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
OutHandler(InputStream inputStream,
String taskId,
OutHandlerMethod outHandlerMethod) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OutHandler |
create(InputStream inputStream,
String taskId,
OutHandlerMethod outHandlerMethod)
创建输出线程(默认立即开启线程)
|
static OutHandler |
create(InputStream inputStream,
String taskId,
OutHandlerMethod outHandlerMethod,
boolean start)
创建输出线程
指定启动线程开启
|
void |
run()
执行线程
|
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, toString, yieldpublic OutHandler(InputStream inputStream, String taskId, OutHandlerMethod outHandlerMethod)
public static OutHandler create(InputStream inputStream, String taskId, OutHandlerMethod outHandlerMethod)
inputStream - input流taskId - 任务idoutHandlerMethod - 输出消息处理接口public static OutHandler create(InputStream inputStream, String taskId, OutHandlerMethod outHandlerMethod, boolean start)
inputStream - input流taskId - 任务idoutHandlerMethod - 输出消息处理接口start - 是否需要启动任务线程Copyright © 2021. All rights reserved.