-
Notifications
You must be signed in to change notification settings - Fork 21
Conversation
The circuit breaker is created by the provider each time it is requested. On Thu, Jul 14, 2016 at 4:47 PM, Robert Biter notifications@github.com
|
👍 |
.withFailureThreshold(3, 5) | ||
.withSuccessThreshold(3) | ||
.withDelay(30L, TimeUnit.SECONDS) | ||
breaker.open() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to overcome this: failsafe-lib/failsafe#34
e85f3f3
to
a5144f4
Compare
|
||
/** | ||
* @author dpersa | ||
*/ | ||
class UtilsModule extends AbstractModule with ScalaModule { | ||
|
||
override def configure() = { | ||
bind[DefaultAsyncHttpClient].toProvider[AsyncClientProvider].asEagerSingleton() | ||
bind[CircuitBreaker].toProvider[CircuitBreakerProvider] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one shouldn't be singleton :)
👍 |
No description provided.