public class RedisClusterConfig extends ImClusterConfig
Modifier and Type | Field and Description |
---|---|
static String |
IM_CLUSTER_TOPIC |
static AtomicLong |
RECEIVED_TOPIC_COUNT
收到了多少次topic
|
org.redisson.api.RTopic<ImClusterVo> |
rtopic |
groupContext
Modifier and Type | Method and Description |
---|---|
org.redisson.api.RedissonClient |
getRedisson() |
String |
getTopic() |
String |
getTopicSuffix() |
static RedisClusterConfig |
newInstance(String topicSuffix,
org.redisson.api.RedissonClient redisson,
org.tio.core.GroupContext groupContext)
J-IM内置的集群是用redis的topic来实现的,所以不同groupContext就要有一个不同的topicSuffix
|
void |
publish(ImClusterVo imClusterVo) |
void |
publishAsyn(ImClusterVo imClusterVo) |
void |
send(ImClusterVo imClusterVo) |
void |
sendAsyn(ImClusterVo imClusterVo) |
void |
setRedisson(org.redisson.api.RedissonClient redisson) |
void |
setTopicSuffix(String topicSuffix) |
isCluster4all, isCluster4channelId, isCluster4group, isCluster4ip, isCluster4user, setCluster4all, setCluster4channelId, setCluster4group, setCluster4ip, setCluster4user
public static final String IM_CLUSTER_TOPIC
public org.redisson.api.RTopic<ImClusterVo> rtopic
public static final AtomicLong RECEIVED_TOPIC_COUNT
public static RedisClusterConfig newInstance(String topicSuffix, org.redisson.api.RedissonClient redisson, org.tio.core.GroupContext groupContext)
topicSuffix
- 不同类型的groupContext就要有一个不同的topicSuffixredisson
- groupContext
- public String getTopicSuffix()
public void setTopicSuffix(String topicSuffix)
public String getTopic()
public void publishAsyn(ImClusterVo imClusterVo)
public void publish(ImClusterVo imClusterVo)
public org.redisson.api.RedissonClient getRedisson()
public void setRedisson(org.redisson.api.RedissonClient redisson)
public void send(ImClusterVo imClusterVo)
send
in class ImClusterConfig
public void sendAsyn(ImClusterVo imClusterVo)
sendAsyn
in class ImClusterConfig
Copyright © 2018. All rights reserved.