public class RemoteConfigRepository extends AbstractConfigRepository
| Constructor and Description |
|---|
RemoteConfigRepository(String namespace)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Properties |
getConfig()
Get the config from this repository.
|
ConfigSourceType |
getSourceType()
Return the config's source type, i.e.
|
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 © 2022 Ctrip, Inc.. All rights reserved.