
public class AsyncArrayDispatcher extends AsyncDispatcher
| Constructor and Description |
|---|
AsyncArrayDispatcher(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(Object ctx)
往数据传输模块中添加信息,
|
void |
flush()
强制调用写操作
|
void |
registerShutDownHook() |
void |
start(AsyncAppender appender,
String workName)
初始化异步传输数据模块
|
public AsyncArrayDispatcher(Properties properties) throws com.alibaba.rocketmq.client.exception.MQClientException
com.alibaba.rocketmq.client.exception.MQClientExceptionpublic void start(AsyncAppender appender, String workName)
AsyncDispatcherstart in class AsyncDispatcherappender - 实际的传输模块workName - 传输模块工作线程名称public boolean append(Object ctx)
AsyncDispatcherappend in class AsyncDispatcherctx - 数据信息public void flush()
throws IOException
AsyncDispatcherflush in class AsyncDispatcherIOExceptionpublic void registerShutDownHook()
registerShutDownHook in class AsyncDispatcherCopyright © 2012–2017. All rights reserved.