Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apollo
Commits
b9be6aff
Commit
b9be6aff
authored
Nov 10, 2018
by
nobodyiam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add since annotation for recently added apis
parent
4b704b09
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
apollo-client/src/main/java/com/ctrip/framework/apollo/Config.java
...ient/src/main/java/com/ctrip/framework/apollo/Config.java
+8
-0
apollo-client/src/main/java/com/ctrip/framework/apollo/enums/ConfigSourceType.java
...va/com/ctrip/framework/apollo/enums/ConfigSourceType.java
+2
-0
apollo-core/src/main/java/com/ctrip/framework/apollo/core/spi/MetaServerProvider.java
...m/ctrip/framework/apollo/core/spi/MetaServerProvider.java
+3
-0
apollo-core/src/main/java/com/ctrip/framework/apollo/core/spi/Ordered.java
...ain/java/com/ctrip/framework/apollo/core/spi/Ordered.java
+2
-0
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/Config.java
View file @
b9be6aff
...
...
@@ -176,6 +176,8 @@ public interface Config {
*
* @param listener the config change listener
* @param interestedKeys the keys interested by the listener
*
* @since 1.0.0
*/
public
void
addChangeListener
(
ConfigChangeListener
listener
,
Set
<
String
>
interestedKeys
);
...
...
@@ -184,6 +186,8 @@ public interface Config {
*
* @param listener the specific config change listener to remove
* @return true if the specific config change listener is found and removed
*
* @since 1.1.0
*/
public
boolean
removeChangeListener
(
ConfigChangeListener
listener
);
...
...
@@ -202,6 +206,8 @@ public interface Config {
* @param defaultValue the default value when key is not found or any error occurred
* @param <T> user-defined type
* @return the property value
*
* @since 1.1.0
*/
public
<
T
>
T
getProperty
(
String
key
,
Function
<
String
,
T
>
function
,
T
defaultValue
);
...
...
@@ -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
*
* @since 1.1.0
*/
public
ConfigSourceType
getSourceType
();
}
apollo-client/src/main/java/com/ctrip/framework/apollo/enums/ConfigSourceType.java
View file @
b9be6aff
...
...
@@ -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
*
* @since 1.1.0
*/
public
enum
ConfigSourceType
{
REMOTE
(
"Loaded from remote config service"
),
LOCAL
(
"Loaded from local cache"
),
NONE
(
"Load failed"
);
...
...
apollo-core/src/main/java/com/ctrip/framework/apollo/core/spi/MetaServerProvider.java
View file @
b9be6aff
...
...
@@ -2,6 +2,9 @@ package com.ctrip.framework.apollo.core.spi;
import
com.ctrip.framework.apollo.core.enums.Env
;
/**
* @since 1.0.0
*/
public
interface
MetaServerProvider
extends
Ordered
{
/**
...
...
apollo-core/src/main/java/com/ctrip/framework/apollo/core/spi/Ordered.java
View file @
b9be6aff
...
...
@@ -7,6 +7,8 @@ package com.ctrip.framework.apollo.core.spi;
* <p>The actual {@link #getOrder() order} can be interpreted as prioritization,
* with the first object (with the lowest order value) having the highest
* priority.
*
* @since 1.0.0
*/
public
interface
Ordered
{
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment