public abstract class AbstractQueueRunnable<T> extends AbstractSynRunnable
executed, executor, runningLock| Modifier | Constructor and Description |
|---|---|
protected |
AbstractQueueRunnable(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMsg(T t)
addMsg
|
void |
clearMsgQueue()
清空处理的队列消息
|
abstract Queue<T> |
getMsgQueue()
获取消息队列
|
int |
getMsgQueueSize()
获取消息队列中的大小
|
boolean |
isNeededExecute() |
execute, isCanceled, logstr, run, runTask, setCanceledprotected AbstractQueueRunnable(Executor executor)
public boolean addMsg(T t)
t - messagepublic void clearMsgQueue()
public boolean isNeededExecute()
isNeededExecute in class AbstractSynRunnablepublic int getMsgQueueSize()
Copyright © 2025. All rights reserved.