Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
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
spring-cloud-netflix
Commits
3f96f3ae
Commit
3f96f3ae
authored
Oct 08, 2014
by
Christian Dupuis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some polishing
parent
5bd32c01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
HystrixConfiguration.java
...framework/cloud/netflix/hystrix/HystrixConfiguration.java
+7
-1
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixConfiguration.java
View file @
3f96f3ae
...
@@ -22,6 +22,7 @@ import java.util.HashSet;
...
@@ -22,6 +22,7 @@ import java.util.HashSet;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Set
;
import
org.apache.catalina.core.ApplicationContext
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.DisposableBean
;
import
org.springframework.beans.factory.DisposableBean
;
...
@@ -193,12 +194,17 @@ public class HystrixConfiguration implements ImportAware {
...
@@ -193,12 +194,17 @@ public class HystrixConfiguration implements ImportAware {
}
}
/**
* {@link DisposableBean} that makes sure that Hystrix internal state is cleared
* when {@link ApplicationContext} shuts down.
*/
private
class
HystrixShutdownHook
implements
DisposableBean
{
private
class
HystrixShutdownHook
implements
DisposableBean
{
@Override
@Override
public
void
destroy
()
throws
Exception
{
public
void
destroy
()
throws
Exception
{
// Just call Hystrix to reset thread pool etc.
Hystrix
.
reset
();
Hystrix
.
reset
();
}
}
}
}
}
}
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