public class RocketMQClusterPolicy extends Object implements ClusterPolicy, org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently
| 构造器和说明 |
|---|
RocketMQClusterPolicy(Properties props) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(String region)
清除本地整个缓存区域
|
void |
connect(Properties props,
CacheProviderHolder holder)
连接到集群
|
org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus |
consumeMessage(List<org.apache.rocketmq.common.message.MessageExt> list,
org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext context) |
void |
disconnect()
断开集群连接
|
void |
evict(String region,
String... keys)
删除本地某个缓存条目
|
void |
publish(Command cmd)
发送消息
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleCommand, sendClearCmd, sendEvictCmdpublic RocketMQClusterPolicy(Properties props)
public void evict(String region, String... keys)
evict 在接口中 ClusterPolicyregion - 区域名称keys - 缓存键值public void clear(String region)
clear 在接口中 ClusterPolicyregion - 区域名称public void connect(Properties props, CacheProviderHolder holder)
ClusterPolicyconnect 在接口中 ClusterPolicyprops - j2cache 配置信息holder - Cache Provider Instancepublic void publish(Command cmd)
ClusterPolicypublish 在接口中 ClusterPolicycmd - command to sendpublic org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus consumeMessage(List<org.apache.rocketmq.common.message.MessageExt> list, org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext context)
consumeMessage 在接口中 org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrentlypublic void disconnect()
ClusterPolicydisconnect 在接口中 ClusterPolicyCopyright © 2018. All rights reserved.