public class JGroupsClusterPolicy extends org.jgroups.ReceiverAdapter implements ClusterPolicy
| 构造器和说明 |
|---|
JGroupsClusterPolicy(String name,
Properties props)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(String region)
清除本地整个缓存区域
|
void |
connect(Properties props,
CacheProviderHolder holder)
连接到集群
|
void |
disconnect()
断开集群连接
|
void |
evict(String region,
String... keys)
删除本地某个缓存条目
|
void |
publish(Command cmd)
发送消息
|
void |
receive(org.jgroups.Message msg) |
void |
viewAccepted(org.jgroups.View view) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleCommand, sendClearCmd, sendEvictCmdpublic JGroupsClusterPolicy(String name, Properties props)
name - 组播频道名称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 disconnect()
ClusterPolicydisconnect 在接口中 ClusterPolicypublic void receive(org.jgroups.Message msg)
receive 在接口中 org.jgroups.MessageListenerreceive 在类中 org.jgroups.ReceiverAdapterpublic void viewAccepted(org.jgroups.View view)
viewAccepted 在接口中 org.jgroups.MembershipListenerviewAccepted 在类中 org.jgroups.ReceiverAdapterpublic void publish(Command cmd)
ClusterPolicypublish 在接口中 ClusterPolicycmd - command to sendCopyright © 2018. All rights reserved.