public class SleuthHystrixConcurrencyStrategy
extends com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy
HystrixConcurrencyStrategy that wraps a Callable in a
Callable that either starts a new span or continues one if the tracing was
already running before the command was executed.| Constructor and Description |
|---|
SleuthHystrixConcurrencyStrategy(brave.Tracing tracing,
SpanNamer spanNamer) |
| Modifier and Type | Method and Description |
|---|---|
BlockingQueue<Runnable> |
getBlockingQueue(int maxQueueSize) |
<T> com.netflix.hystrix.strategy.concurrency.HystrixRequestVariable<T> |
getRequestVariable(com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableLifecycle<T> rv) |
ThreadPoolExecutor |
getThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey,
com.netflix.hystrix.strategy.properties.HystrixProperty<Integer> corePoolSize,
com.netflix.hystrix.strategy.properties.HystrixProperty<Integer> maximumPoolSize,
com.netflix.hystrix.strategy.properties.HystrixProperty<Integer> keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue) |
ThreadPoolExecutor |
getThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey,
com.netflix.hystrix.HystrixThreadPoolProperties threadPoolProperties) |
<T> Callable<T> |
wrapCallable(Callable<T> callable) |
public SleuthHystrixConcurrencyStrategy(brave.Tracing tracing,
SpanNamer spanNamer)
public <T> Callable<T> wrapCallable(Callable<T> callable)
wrapCallable in class com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategypublic ThreadPoolExecutor getThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey, com.netflix.hystrix.strategy.properties.HystrixProperty<Integer> corePoolSize, com.netflix.hystrix.strategy.properties.HystrixProperty<Integer> maximumPoolSize, com.netflix.hystrix.strategy.properties.HystrixProperty<Integer> keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue)
getThreadPool in class com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategypublic ThreadPoolExecutor getThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey, com.netflix.hystrix.HystrixThreadPoolProperties threadPoolProperties)
getThreadPool in class com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategypublic BlockingQueue<Runnable> getBlockingQueue(int maxQueueSize)
getBlockingQueue 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.HystrixConcurrencyStrategyCopyright © 2019 Pivotal Software, Inc.. All rights reserved.