Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
bcb9ad8f
Commit
bcb9ad8f
authored
Jul 05, 2015
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3416 from izeye/typo-20150705
* pr/3416: Fix typo
parents
b81c6398
99cd9bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
DropwizardMetricWriter.java
...k/boot/actuate/metrics/writer/DropwizardMetricWriter.java
+4
-4
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java
View file @
bcb9ad8f
...
@@ -94,16 +94,16 @@ public class DropwizardMetricWriter implements MetricWriter {
...
@@ -94,16 +94,16 @@ public class DropwizardMetricWriter implements MetricWriter {
else
{
else
{
final
double
gauge
=
value
.
getValue
().
doubleValue
();
final
double
gauge
=
value
.
getValue
().
doubleValue
();
// Ensure we synchronize to avoid another thread pre-empting this thread after
// Ensure we synchronize to avoid another thread pre-empting this thread after
// remove causing an error in
CodaHale m
etrics
// remove causing an error in
Dropwizard M
etrics
// NOTE:
CodaHale
provides no way to do this atomically
// NOTE:
Dropwizard Metrics
provides no way to do this atomically
synchronized
(
getG
ua
geLock
(
name
))
{
synchronized
(
getG
au
geLock
(
name
))
{
this
.
registry
.
remove
(
name
);
this
.
registry
.
remove
(
name
);
this
.
registry
.
register
(
name
,
new
SimpleGauge
(
gauge
));
this
.
registry
.
register
(
name
,
new
SimpleGauge
(
gauge
));
}
}
}
}
}
}
private
Object
getG
ua
geLock
(
String
name
)
{
private
Object
getG
au
geLock
(
String
name
)
{
Object
lock
=
this
.
gaugeLocks
.
get
(
name
);
Object
lock
=
this
.
gaugeLocks
.
get
(
name
);
if
(
lock
==
null
)
{
if
(
lock
==
null
)
{
Object
newLock
=
new
Object
();
Object
newLock
=
new
Object
();
...
...
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