Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
openSource
apollo
Commits
adc1cc3a
Unverified
Commit
adc1cc3a
authored
Nov 16, 2017
by
Jason Song
Committed by
GitHub
Nov 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into textarea
parents
8df30f64
141627f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
README.md
README.md
+1
-0
NotificationControllerV2.java
...lo/configservice/controller/NotificationControllerV2.java
+5
-5
hujiang.png
doc/images/known-users/hujiang.png
+0
-0
No files found.
README.md
View file @
adc1cc3a
...
...
@@ -132,3 +132,4 @@ The project is licensed under the [Apache 2 license](https://github.com/ctripcor
![
资产360
](
https://github.com/ctripcorp/apollo/blob/master/doc/images/known-users/zc360.png
)
![
亿咖通
](
https://github.com/ctripcorp/apollo/blob/master/doc/images/known-users/ecarx.png
)
![
5173
](
https://github.com/ctripcorp/apollo/blob/master/doc/images/known-users/5173.png
)
![
沪江
](
https://github.com/ctripcorp/apollo/blob/master/doc/images/known-users/hujiang.png
)
apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/controller/NotificationControllerV2.java
View file @
adc1cc3a
...
...
@@ -150,11 +150,6 @@ public class NotificationControllerV2 implements ReleaseMessageListener {
if
(!
CollectionUtils
.
isEmpty
(
newNotifications
))
{
deferredResultWrapper
.
setResult
(
newNotifications
);
}
else
{
//register all keys
for
(
String
key
:
watchedKeys
)
{
this
.
deferredResults
.
put
(
key
,
deferredResultWrapper
);
}
deferredResultWrapper
.
onTimeout
(()
->
logWatchedKeys
(
watchedKeys
,
"Apollo.LongPoll.TimeOutKeys"
));
...
...
@@ -166,6 +161,11 @@ public class NotificationControllerV2 implements ReleaseMessageListener {
logWatchedKeys
(
watchedKeys
,
"Apollo.LongPoll.CompletedKeys"
);
});
//register all keys
for
(
String
key
:
watchedKeys
)
{
this
.
deferredResults
.
put
(
key
,
deferredResultWrapper
);
}
logWatchedKeys
(
watchedKeys
,
"Apollo.LongPoll.RegisteredKeys"
);
logger
.
debug
(
"Listening {} from appId: {}, cluster: {}, namespace: {}, datacenter: {}"
,
watchedKeys
,
appId
,
cluster
,
namespaces
,
dataCenter
);
...
...
doc/images/known-users/hujiang.png
0 → 100644
View file @
adc1cc3a
8.26 KB
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