| 程序包 | 说明 |
|---|---|
| com.tigerbrokers.stock.openapi.client.socket | |
| com.tigerbrokers.stock.openapi.client.socket.executor |
| 限定符和类型 | 方法和说明 |
|---|---|
WebSocketClient |
WebSocketClient.executor(MessageCallbackExecutor executor)
Sets a custom message callback executor.
|
| 构造器和说明 |
|---|
ApiCallbackDecoder(ApiComposeCallback callback,
MessageCallbackExecutor executor) |
ProtoSocketHandler(ApiAuthentication authentication,
ApiComposeCallback callback,
MessageCallbackExecutor executor,
int sendInterval,
int receiveInterval) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CurrentThreadExecutor
Executes callbacks directly on the calling (Netty I/O) thread, ensuring ordering while
avoiding extra scheduling overhead.
|
class |
PerDataTypeSingleThreadExecutor
Default executor used by the SDK: each
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. |
class |
PerDataTypeSymbolHashExecutor
Executor implementation that keeps independent queues per
SocketCommon.DataType and, for quote-related
types, routes callbacks to single-thread workers chosen by symbol hash. |
Copyright © 2025. All rights reserved.