Thread.State, Thread.UncaughtExceptionHandler| 限定符和类型 | 字段和说明 |
|---|---|
protected List<SendObj> |
errList |
protected String |
perthreadKey |
protected ArrayBlockingQueue<SendBean> |
queue |
protected boolean |
serialize |
protected int |
sucNum |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
AbsThread(int querySize,
boolean serialize) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addData(SendBean sendBean) |
protected abstract void |
doSingle(SendBean obj) |
void |
initData() |
protected abstract void |
logSuc(org.slf4j.Logger log,
SendBean obj)
把上传结果后的信息(ons打messageid,kafka打 分区和移位信息),打印到指定的目录
|
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, yieldprotected final boolean serialize
protected int sucNum
protected final ArrayBlockingQueue<SendBean> queue
protected abstract void doSingle(SendBean obj)
protected abstract void logSuc(org.slf4j.Logger log,
SendBean obj)
log - public void initData()
public void addData(SendBean sendBean) throws InterruptedException
Copyright © 2017. All rights reserved.