| 构造器和说明 |
|---|
SessionRegistry() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancel(List<String> connectIds)
cancel publisher or subscriber data by client ip address and port(ip:port),one ip address has more than one processId
when disconnection between client node and session node,disconnect event fire remove all pub and sub info on session and data node
this function always use in Console manage Client node list,input ip list must transform to connectId through connect manage
|
void |
cleanClientConnect()
for scheduler clean no connect client
|
void |
fetchChangData()
Timing tasks to send all subscriber dataInfoId version to data,
Select higher version data push to client node
|
void |
fetchChangDataProcess()
for fetchChangData first invoke
|
protected DataStore |
getSessionDataStore()
Getter method for property sessionDataStore.
|
protected Interests |
getSessionInterests()
Getter method for property sessionInterests.
|
protected TaskListenerManager |
getTaskListenerManager()
Getter method for property taskListenerManager.
|
void |
register(StoreData storeData)
register new publisher or subscriber data
|
void |
remove(List<String> connectIds)
remove publisher or subscriber data by client ip address and port(ip:port)
this function always use in rest api Console manage ,the run mode is standard
remove subscriber data will push empty datum to some one who has dataInfoId begin with pushEmptyDataDataIdPrefixes config
|
void |
renewDatum(String connectId)
Regularly send update Datum with same connectID valid time request service
|
void |
sendDatumSnapshot(String connectId,
String dataServerIP) |
void |
setEnableDataRenewSnapshot(boolean enableDataRenewSnapshot)
Setter method for property enableDataRenewSnapshot .
|
void |
unRegister(StoreData<String> storeData)
message mode com.alipay.sofa.registry.client.provider for client node to unregister single subscriber or publisher data
|
public void register(StoreData storeData)
Registrypublic void unRegister(StoreData<String> storeData)
RegistryunRegister 在接口中 Registrypublic void cancel(List<String> connectIds)
Registrypublic void fetchChangData()
RegistryfetchChangData 在接口中 Registrypublic void fetchChangDataProcess()
RegistryfetchChangDataProcess 在接口中 Registrypublic void remove(List<String> connectIds)
Registrypublic void cleanClientConnect()
RegistrycleanClientConnect 在接口中 Registrypublic void renewDatum(String connectId)
RegistryrenewDatum 在接口中 Registrypublic void sendDatumSnapshot(String connectId, String dataServerIP)
sendDatumSnapshot 在接口中 Registryprotected Interests getSessionInterests()
protected DataStore getSessionDataStore()
protected TaskListenerManager getTaskListenerManager()
public void setEnableDataRenewSnapshot(boolean enableDataRenewSnapshot)
setEnableDataRenewSnapshot 在接口中 RegistryenableDataRenewSnapshot - value to be assigned to property enableDataRenewSnapshotCopyright © 2020 The Ant Financial. All rights reserved.