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
8814da3b
Commit
8814da3b
authored
Nov 22, 2016
by
Ryan Baxter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document how to use thread isolation with hystrix and feign. Fixes #1191.
parent
2d748bf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
spring-cloud-netflix.adoc
docs/src/main/asciidoc/spring-cloud-netflix.adoc
+20
-0
No files found.
docs/src/main/asciidoc/spring-cloud-netflix.adoc
View file @
8814da3b
...
...
@@ -970,6 +970,26 @@ This replaces the `SpringMvcContract` with `feign.Contract.Default` and adds a `
Default
configurations
can
be
specified
in
the
`@
EnableFeignClients
`
attribute
`
defaultConfiguration
`
in
a
similar
manner
as
described
above
.
The
difference
is
that
this
configuration
will
apply
to
_all_
feign
clients
.
NOTE
:
If
you
need
to
use
`
ThreadLocal
`
bound
variables
in
your
`
RequestInterceptor
`
s
you
will
need
to
either
set
the
thread
isolation
strategy
for
Hystrix
to
`
SEMAPHORE
`
or
disable
Hystrix
in
Feign
.
application
.
yml
[
source
,
yaml
]
----
#
To
disable
Hystrix
in
Feign
feign
:
hystrix
:
enabled
:
false
#
To
set
thread
isolation
to
SEMAPHORE
hystrix
:
command
:
default
:
execution
:
isolation
:
strategy
:
SEMAPHORE
----
===
Creating
Feign
Clients
Manually
In
some
cases
it
might
be
necessary
to
customize
your
Feign
Clients
in
a
way
that
is
not
...
...
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