diff --git a/api/src/main/java/com/alibaba/nacos/api/annotation/NacosProperties.java b/api/src/main/java/com/alibaba/nacos/api/annotation/NacosProperties.java index 6b86fe83e..6718bb98b 100644 --- a/api/src/main/java/com/alibaba/nacos/api/annotation/NacosProperties.java +++ b/api/src/main/java/com/alibaba/nacos/api/annotation/NacosProperties.java @@ -91,6 +91,11 @@ public @interface NacosProperties { */ String MAX_RETRY = "maxRetry"; + /** + * The property name of "enableRemoteSyncConfig" + */ + String ENABLE_REMOTE_SYNC_CONFIG = "enableRemoteSyncConfig"; + /** * The placeholder of endpoint, the value is "${nacos.endpoint:}" */ @@ -146,6 +151,11 @@ public @interface NacosProperties { */ String MAX_RETRY_PLACEHOLDER = "${" + PREFIX + MAX_RETRY + ":}"; + /** + * The placeholder of {@link NacosProperties#ENABLE_REMOTE_SYNC_CONFIG enableRemoteSyncConfig}, the value is "${nacos.enableRemoteSyncConfig:}" + */ + String ENABLE_REMOTE_SYNC_CONFIG_PLACEHOLDER = "${" + PREFIX + ENABLE_REMOTE_SYNC_CONFIG + "}"; + /** * The property of "endpoint" * @@ -234,4 +244,12 @@ public @interface NacosProperties { */ String maxRetry() default MAX_RETRY_PLACEHOLDER; + /** + * The property of "enableRemoteSyncConfig" + * + * @return empty as default value + * @see #ENABLE_REMOTE_SYNC_CONFIG + */ + String enableRemoteSyncConfig() default ENABLE_REMOTE_SYNC_CONFIG_PLACEHOLDER; + }