public class RemoteConfigRepository extends AbstractConfigRepository
| 构造器和说明 |
|---|
RemoteConfigRepository(String namespace)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Properties |
getConfig()
Get the config from this repository.
|
ConfigSourceType |
getSourceType()
Return the config's source type, i.e. where is the config loaded from
|
void |
onLongPollNotified(ServiceDTO longPollNotifiedServiceDto,
ApolloNotificationMessages remoteMessages) |
void |
setUpstreamRepository(ConfigRepository upstreamConfigRepository)
Set the fallback repo for this repository.
|
addChangeListener, removeChangeListenerpublic RemoteConfigRepository(String namespace)
namespace - the namespacepublic Properties getConfig()
ConfigRepositorypublic void setUpstreamRepository(ConfigRepository upstreamConfigRepository)
ConfigRepositoryupstreamConfigRepository - the upstream repopublic ConfigSourceType getSourceType()
ConfigRepositorypublic void onLongPollNotified(ServiceDTO longPollNotifiedServiceDto, ApolloNotificationMessages remoteMessages)
Copyright © 2019 Ctrip, Inc.. All rights reserved.