public interface Interests extends DataManager<Subscriber,String,String>
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkAndUpdateInterestVersions(String dataCenter,
String dataInfoId,
Long version)
check subscribers interest dataInfoId version,very dataCenter dataInfoId version different
if not exist add
else check and update big version
|
boolean |
checkInterestVersions(String dataCenter,
String dataInfoId,
Long version)
check subscribers interest dataInfoId version,very dataCenter dataInfoId version different
if return false
else check return bigger version
|
Collection<String> |
getInterestDataInfoIds()
get all subscriber dataInfoIds
|
Collection<Subscriber> |
getInterests(String dataInfoId)
query subscribers by dataInfoID
|
Subscriber |
queryById(String registerId,
String dataInfoId)
get subscriber by dataInfoId and registerId
|
Map<InetSocketAddress,Map<String,Subscriber>> |
querySubscriberIndex(String dataInfoId,
com.alipay.sofa.registry.core.model.ScopeEnum scope)
get subscribers whith specify dataInfo and scope,and group by source InetSocketAddress
|
add, count, deleteByConnectId, deleteById, queryByConnectIdCollection<Subscriber> getInterests(String dataInfoId)
dataInfoId - boolean checkInterestVersions(String dataCenter, String dataInfoId, Long version)
dataCenter - dataInfoId - version - boolean checkAndUpdateInterestVersions(String dataCenter, String dataInfoId, Long version)
dataCenter - dataInfoId - version - Collection<String> getInterestDataInfoIds()
Map<InetSocketAddress,Map<String,Subscriber>> querySubscriberIndex(String dataInfoId, com.alipay.sofa.registry.core.model.ScopeEnum scope)
dataInfoId - scope - Subscriber queryById(String registerId, String dataInfoId)
registerId - dataInfoId - Copyright © 2019 The Ant Financial. All rights reserved.