Re: Fwd: Need Help to resolve Custom Retry Handler Issue

2016-09-19 Thread Ignasi Barrera
Guice does not allow to bind an interface to multiple implementations. That's why you get the "HttpRetryHandler already registered with ClientError and can not be binded again" error when you try to bind your custom handler. jclouds already has a default retry handler bound, so you can't bind your

Re: Fwd: Need Help to resolve Custom Retry Handler Issue

2016-09-13 Thread Dileep Dixith
Whether our impl need to extend BackoffLimitedRetryHandler or RetryOnRenew or need to implement HttpRetryHandler. Please clarify on this. Also please share me some examples, if you have. On Wed, Sep 14, 2016 at 12:19 AM, Ignasi Barrera wrote: > Hi, > > It is not easy to override bindings in Gu

Re: Fwd: Need Help to resolve Custom Retry Handler Issue

2016-09-13 Thread Ignasi Barrera
Hi, It is not easy to override bindings in Guice modules. The common way to do that is by using the "Modules.override" helper but in this case, since the module that defines the binding is a default module in the api metadata and it is jclouds who instantiates it, you won't be able to use that. W