public class HystrixContextScheduler
extends rx.Scheduler
Scheduler
so that scheduled actions are wrapped with HystrixContexSchedulerAction
so that
the HystrixRequestContext
is properly copied across threads (if they are used by the Scheduler
).Constructor and Description |
---|
HystrixContextScheduler(HystrixConcurrencyStrategy concurrencyStrategy,
HystrixThreadPool threadPool) |
HystrixContextScheduler(HystrixConcurrencyStrategy concurrencyStrategy,
HystrixThreadPool threadPool,
rx.functions.Func0<java.lang.Boolean> shouldInterruptThread) |
HystrixContextScheduler(HystrixConcurrencyStrategy concurrencyStrategy,
rx.Scheduler scheduler) |
HystrixContextScheduler(rx.Scheduler scheduler) |
Modifier and Type | Method and Description |
---|---|
rx.Scheduler.Worker |
createWorker() |
public HystrixContextScheduler(HystrixConcurrencyStrategy concurrencyStrategy, HystrixThreadPool threadPool)
public HystrixContextScheduler(HystrixConcurrencyStrategy concurrencyStrategy, HystrixThreadPool threadPool, rx.functions.Func0<java.lang.Boolean> shouldInterruptThread)
public HystrixContextScheduler(HystrixConcurrencyStrategy concurrencyStrategy, rx.Scheduler scheduler)
public HystrixContextScheduler(rx.Scheduler scheduler)