public class RabbitMQClusterPolicy extends Object implements ClusterPolicy, com.rabbitmq.client.Consumer
| 构造器和说明 |
|---|
RabbitMQClusterPolicy(Properties props) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(String region)
清除本地整个缓存区域
|
void |
connect(Properties props,
CacheProviderHolder holder)
连接到集群
|
void |
disconnect()
断开集群连接
|
void |
evict(String region,
String... keys)
删除本地某个缓存条目
|
void |
handleCancel(String s) |
void |
handleCancelOk(String s) |
void |
handleConsumeOk(String s) |
void |
handleDelivery(String s,
com.rabbitmq.client.Envelope envelope,
com.rabbitmq.client.AMQP.BasicProperties basicProperties,
byte[] bytes) |
void |
handleRecoverOk(String s) |
void |
handleShutdownSignal(String s,
com.rabbitmq.client.ShutdownSignalException e) |
void |
publish(Command cmd)
发布消息
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleCommand, sendClearCmd, sendEvictCmdpublic RabbitMQClusterPolicy(Properties props)
props - RabbitMQ 配置信息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)
publish 在接口中 ClusterPolicycmd - 消息数据public void disconnect()
ClusterPolicydisconnect 在接口中 ClusterPolicypublic void handleDelivery(String s, com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties basicProperties, byte[] bytes)
handleDelivery 在接口中 com.rabbitmq.client.Consumerpublic void handleConsumeOk(String s)
handleConsumeOk 在接口中 com.rabbitmq.client.Consumerpublic void handleCancelOk(String s)
handleCancelOk 在接口中 com.rabbitmq.client.Consumerpublic void handleCancel(String s)
handleCancel 在接口中 com.rabbitmq.client.Consumerpublic void handleShutdownSignal(String s, com.rabbitmq.client.ShutdownSignalException e)
handleShutdownSignal 在接口中 com.rabbitmq.client.Consumerpublic void handleRecoverOk(String s)
handleRecoverOk 在接口中 com.rabbitmq.client.ConsumerCopyright © 2018. All rights reserved.