| 限定符和类型 | 类和说明 |
|---|---|
static class |
SessionRegistry.SelectSubscriber |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Exchange |
boltExchange |
protected ConfigProvideDataWatcher |
configProvideDataWatcher |
protected FirePushService |
firePushService |
protected static Logger |
LOGGER |
protected PushSwitchService |
pushSwitchService |
protected static Logger |
SCAN_VER_LOGGER |
protected DataStore |
sessionDataStore
store publishers
|
protected Interests |
sessionInterests
store subscribers
|
protected SessionRegistryStrategy |
sessionRegistryStrategy |
protected SessionServerConfig |
sessionServerConfig |
protected Watchers |
sessionWatchers
store watchers
|
protected WrapperInterceptorManager |
wrapperInterceptorManager |
protected WriteDataAcceptor |
writeDataAcceptor |
| 构造器和说明 |
|---|
SessionRegistry() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
blacklist(List<ConnectId> connectIds)
disable the connectIds: 1. clean pub/sub/wat; 2. check sub
|
void |
clean(List<ConnectId> connectIds)
clean all the connectIds: 1. clean pubs/sub/wat
|
void |
cleanClientConnect()
for scheduler clean no connect client
|
void |
clientOff(List<ConnectId> connectIds)
client off the connectIds: 1. clean pubs, keep sub/wat; 2. check sub
|
String |
getDataCenterWhenPushEmpty() |
void |
init() |
boolean |
isPushEmpty(Subscriber subscriber) |
void |
register(StoreData storeData,
Channel channel)
register new publisher or subscriber data
|
void |
unRegister(StoreData<String> storeData)
message mode com.alipay.sofa.registry.client.provider for client node to unregister single
subscriber or publisher data
|
protected static final Logger LOGGER
protected static final Logger SCAN_VER_LOGGER
@Autowired protected Interests sessionInterests
@Autowired protected Watchers sessionWatchers
@Autowired protected DataStore sessionDataStore
@Autowired protected SessionServerConfig sessionServerConfig
@Autowired protected PushSwitchService pushSwitchService
@Autowired protected Exchange boltExchange
@Autowired protected SessionRegistryStrategy sessionRegistryStrategy
@Autowired protected WrapperInterceptorManager wrapperInterceptorManager
@Autowired protected WriteDataAcceptor writeDataAcceptor
@Autowired protected FirePushService firePushService
@Autowired protected ConfigProvideDataWatcher configProvideDataWatcher
@PostConstruct public void init()
public void register(StoreData storeData, Channel channel)
Registrypublic void unRegister(StoreData<String> storeData)
RegistryunRegister 在接口中 RegistrystoreData - datapublic void clean(List<ConnectId> connectIds)
Registrypublic void clientOff(List<ConnectId> connectIds)
Registrypublic void blacklist(List<ConnectId> connectIds)
Registrypublic boolean isPushEmpty(Subscriber subscriber)
public String getDataCenterWhenPushEmpty()
public void cleanClientConnect()
RegistrycleanClientConnect 在接口中 RegistryCopyright © 2023 The Ant Financial. All rights reserved.