@Requires(classes=com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy.class) @Requires(beans=TracingInvocationInstrumenterFactory.class) @Singleton @Internal public class TracingHystrixConcurrentStrategy extends com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy
HystrixConcurrencyStrategy with one that is enhanced for Tracing.| Constructor and Description |
|---|
TracingHystrixConcurrentStrategy(TracingInvocationInstrumenterFactory tracingInvocationInstrumenterFactory,
com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy hystrixConcurrencyStrategy)
Creates enhanced
HystrixConcurrencyStrategy for tracing. |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.BlockingQueue<java.lang.Runnable> |
getBlockingQueue(int maxQueueSize) |
<T> com.netflix.hystrix.strategy.concurrency.HystrixRequestVariable<T> |
getRequestVariable(com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableLifecycle<T> rv) |
java.util.concurrent.ThreadPoolExecutor |
getThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey,
com.netflix.hystrix.strategy.properties.HystrixProperty<java.lang.Integer> corePoolSize,
com.netflix.hystrix.strategy.properties.HystrixProperty<java.lang.Integer> maximumPoolSize,
com.netflix.hystrix.strategy.properties.HystrixProperty<java.lang.Integer> keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue) |
java.util.concurrent.ThreadPoolExecutor |
getThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey,
com.netflix.hystrix.HystrixThreadPoolProperties threadPoolProperties) |
<T> java.util.concurrent.Callable<T> |
wrapCallable(java.util.concurrent.Callable<T> callable) |
public TracingHystrixConcurrentStrategy(TracingInvocationInstrumenterFactory tracingInvocationInstrumenterFactory, @Nullable com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy hystrixConcurrencyStrategy)
HystrixConcurrencyStrategy for tracing.tracingInvocationInstrumenterFactory - For instrumenting callablehystrixConcurrencyStrategy - Different behavior or implementations for concurrency related aspects of the system with default implementationspublic java.util.concurrent.ThreadPoolExecutor getThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey,
com.netflix.hystrix.strategy.properties.HystrixProperty<java.lang.Integer> corePoolSize,
com.netflix.hystrix.strategy.properties.HystrixProperty<java.lang.Integer> maximumPoolSize,
com.netflix.hystrix.strategy.properties.HystrixProperty<java.lang.Integer> keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue)
getThreadPool in class com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategypublic java.util.concurrent.ThreadPoolExecutor getThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey,
com.netflix.hystrix.HystrixThreadPoolProperties threadPoolProperties)
getThreadPool in class com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategypublic java.util.concurrent.BlockingQueue<java.lang.Runnable> getBlockingQueue(int maxQueueSize)
getBlockingQueue in class com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategypublic <T> java.util.concurrent.Callable<T> wrapCallable(java.util.concurrent.Callable<T> callable)
wrapCallable in class com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategypublic <T> com.netflix.hystrix.strategy.concurrency.HystrixRequestVariable<T> getRequestVariable(com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableLifecycle<T> rv)
getRequestVariable in class com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy