Commit b9be6aff authored by nobodyiam's avatar nobodyiam

add since annotation for recently added apis

parent 4b704b09
...@@ -176,6 +176,8 @@ public interface Config { ...@@ -176,6 +176,8 @@ public interface Config {
* *
* @param listener the config change listener * @param listener the config change listener
* @param interestedKeys the keys interested by the listener * @param interestedKeys the keys interested by the listener
*
* @since 1.0.0
*/ */
public void addChangeListener(ConfigChangeListener listener, Set<String> interestedKeys); public void addChangeListener(ConfigChangeListener listener, Set<String> interestedKeys);
...@@ -184,6 +186,8 @@ public interface Config { ...@@ -184,6 +186,8 @@ public interface Config {
* *
* @param listener the specific config change listener to remove * @param listener the specific config change listener to remove
* @return true if the specific config change listener is found and removed * @return true if the specific config change listener is found and removed
*
* @since 1.1.0
*/ */
public boolean removeChangeListener(ConfigChangeListener listener); public boolean removeChangeListener(ConfigChangeListener listener);
...@@ -202,6 +206,8 @@ public interface Config { ...@@ -202,6 +206,8 @@ public interface Config {
* @param defaultValue the default value when key is not found or any error occurred * @param defaultValue the default value when key is not found or any error occurred
* @param <T> user-defined type * @param <T> user-defined type
* @return the property value * @return the property value
*
* @since 1.1.0
*/ */
public <T> T getProperty(String key, Function<String, T> function, T defaultValue); public <T> T getProperty(String key, Function<String, T> function, T defaultValue);
...@@ -209,6 +215,8 @@ public interface Config { ...@@ -209,6 +215,8 @@ public interface Config {
* Return the config's source type, i.e. where is the config loaded from * Return the config's source type, i.e. where is the config loaded from
* *
* @return the config's source type * @return the config's source type
*
* @since 1.1.0
*/ */
public ConfigSourceType getSourceType(); public ConfigSourceType getSourceType();
} }
...@@ -2,6 +2,8 @@ package com.ctrip.framework.apollo.enums; ...@@ -2,6 +2,8 @@ package com.ctrip.framework.apollo.enums;
/** /**
* To indicate the config's source type, i.e. where is the config loaded from * To indicate the config's source type, i.e. where is the config loaded from
*
* @since 1.1.0
*/ */
public enum ConfigSourceType { public enum ConfigSourceType {
REMOTE("Loaded from remote config service"), LOCAL("Loaded from local cache"), NONE("Load failed"); REMOTE("Loaded from remote config service"), LOCAL("Loaded from local cache"), NONE("Load failed");
......
...@@ -2,6 +2,9 @@ package com.ctrip.framework.apollo.core.spi; ...@@ -2,6 +2,9 @@ package com.ctrip.framework.apollo.core.spi;
import com.ctrip.framework.apollo.core.enums.Env; import com.ctrip.framework.apollo.core.enums.Env;
/**
* @since 1.0.0
*/
public interface MetaServerProvider extends Ordered { public interface MetaServerProvider extends Ordered {
/** /**
......
...@@ -7,6 +7,8 @@ package com.ctrip.framework.apollo.core.spi; ...@@ -7,6 +7,8 @@ package com.ctrip.framework.apollo.core.spi;
* <p>The actual {@link #getOrder() order} can be interpreted as prioritization, * <p>The actual {@link #getOrder() order} can be interpreted as prioritization,
* with the first object (with the lowest order value) having the highest * with the first object (with the lowest order value) having the highest
* priority. * priority.
*
* @since 1.0.0
*/ */
public interface Ordered { public interface Ordered {
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment