
public class AsyncArrayDispatcher extends Object implements AsyncDispatcher
| Constructor and Description |
|---|
AsyncArrayDispatcher(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(Object ctx)
往数据传输模块中添加信息,
|
void |
flush()
强制调用写操作
|
void |
registerShutDownHook() |
void |
removeShutdownHook() |
void |
shutdown()
关闭轨迹Hook
|
void |
start(String workName)
初始化异步传输数据模块
|
public AsyncArrayDispatcher(Properties properties) throws com.alibaba.rocketmq.client.exception.MQClientException
com.alibaba.rocketmq.client.exception.MQClientExceptionpublic void start(String workName)
AsyncDispatcherstart in interface AsyncDispatcherworkName - 传输模块工作线程名称public boolean append(Object ctx)
AsyncDispatcherappend in interface AsyncDispatcherctx - 数据信息public void flush()
throws IOException
AsyncDispatcherflush in interface AsyncDispatcherIOExceptionpublic void shutdown()
AsyncDispatchershutdown in interface AsyncDispatcherpublic void registerShutDownHook()
public void removeShutdownHook()
Copyright © 2012–2018. All rights reserved.