public class AsyncArrayDispatcher extends Object implements AsyncDispatcher
| Constructor and Description |
|---|
AsyncArrayDispatcher(Properties properties) |
AsyncArrayDispatcher(Properties properties,
SessionCredentials sessionCredentials) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(Object ctx)
往数据传输模块中添加信息,
|
void |
flush()
强制调用写操作
|
com.alibaba.rocketmq.client.impl.consumer.DefaultMQPushConsumerImpl |
getHostConsumer() |
com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl |
getHostProducer() |
void |
registerShutDownHook() |
void |
removeShutdownHook() |
void |
setHostConsumer(com.alibaba.rocketmq.client.impl.consumer.DefaultMQPushConsumerImpl hostConsumer) |
void |
setHostProducer(com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl hostProducer) |
void |
shutdown()
关闭轨迹Hook
|
void |
start()
初始化异步传输数据模块
|
public AsyncArrayDispatcher(Properties properties) throws com.alibaba.rocketmq.client.exception.MQClientException
com.alibaba.rocketmq.client.exception.MQClientExceptionpublic AsyncArrayDispatcher(Properties properties, SessionCredentials sessionCredentials) throws com.alibaba.rocketmq.client.exception.MQClientException
com.alibaba.rocketmq.client.exception.MQClientExceptionpublic com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl getHostProducer()
public void setHostProducer(com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl hostProducer)
public com.alibaba.rocketmq.client.impl.consumer.DefaultMQPushConsumerImpl getHostConsumer()
public void setHostConsumer(com.alibaba.rocketmq.client.impl.consumer.DefaultMQPushConsumerImpl hostConsumer)
public void start()
throws com.alibaba.rocketmq.client.exception.MQClientException
AsyncDispatcherstart in interface AsyncDispatchercom.alibaba.rocketmq.client.exception.MQClientExceptionpublic 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–2019. All rights reserved.