public abstract class HystrixRatpack extends Object
IMPORTANT: the initialize()
method must be called to enable Hystrix request caching and collapsing with Ratpack.
Constructor and Description |
---|
HystrixRatpack() |
Modifier and Type | Method and Description |
---|---|
static void |
initialize()
Registers a
HystrixConcurrencyStrategy with Hystrix that provides a Registry
backed strategy for caching HystrixRequestVariable during a Request . |
public static void initialize()
HystrixConcurrencyStrategy
with Hystrix that provides a Registry
backed strategy for caching HystrixRequestVariable
during a Request
.
This method only needs to be called once per JVM, regardless of how many Ratpack applications are running within the JVM.
Once initialized Hystrix will use Ratpack's Request Registry for request caching, request collapsing and request log.