public class PerDataTypeSingleThreadExecutor extends Object implements MessageCallbackExecutor
SocketCommon.DataType owns its own single-thread queue
so callbacks of the same type are processed sequentially while different types do not block
one another.| 构造器和说明 |
|---|
PerDataTypeSingleThreadExecutor() |
PerDataTypeSingleThreadExecutor(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(Runnable callback,
SocketCommon.DataType dataType,
String symbol)
Execute a callback.
|
void |
shutdown()
Gracefully shut down underlying resources.
|
void |
shutdownNow()
Immediately shut down underlying resources.
|
public PerDataTypeSingleThreadExecutor()
public PerDataTypeSingleThreadExecutor(int capacity)
public void execute(Runnable callback, SocketCommon.DataType dataType, String symbol)
MessageCallbackExecutorexecute 在接口中 MessageCallbackExecutorcallback - the task to rundataType - the data type of the messagesymbol - quote symbol, may be nullpublic void shutdown()
MessageCallbackExecutorshutdown 在接口中 MessageCallbackExecutorpublic void shutdownNow()
MessageCallbackExecutorshutdownNow 在接口中 MessageCallbackExecutorCopyright © 2025. All rights reserved.