@Override public T get() { T v = value.get(); if (v == null) { return defaultValue; } else { return v; } }
@Override public Number getValue() { return properties.circuitBreakerErrorThresholdPercentage().get(); } });
@Override public Number getValue() { return properties.executionTimeoutInMilliseconds().get(); } });
@Override public Number getValue() { return properties.executionTimeoutInMilliseconds().get(); } });
@Override public Boolean getValue() { return properties.metricsRollingPercentileEnabled().get(); } });
@Override public Boolean getValue() { return properties.requestCacheEnabled().get(); } });
@Override public Boolean getValue() { return properties.requestLogEnabled().get(); } });
private boolean isAfterSleepWindow() { final long circuitOpenTime = circuitOpened.get(); final long currentTime = System.currentTimeMillis(); final long sleepWindowTime = properties.circuitBreakerSleepWindowInMilliseconds().get(); return currentTime > circuitOpenTime + sleepWindowTime; }
@Override public Number getValue() { return properties.queueSizeRejectionThreshold().get(); } });
@Override public Number getValue() { return properties.circuitBreakerRequestVolumeThreshold().get(); } });
@Override public Boolean getValue() { return properties.circuitBreakerForceOpen().get(); } });
@Override public Boolean getValue() { return properties.circuitBreakerForceClosed().get(); } });
@Override public Number getValue() { return properties.executionIsolationSemaphoreMaxConcurrentRequests().get(); } });
@Override public Number getValue() { return properties.timerDelayInMilliseconds().get(); } });
@Override public Number getValue() { return properties.maxQueueSize().get(); } });
private HystrixThreadPoolConfiguration(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolProperties threadPoolProperties) { this(threadPoolKey, threadPoolProperties.coreSize().get(), threadPoolProperties.maximumSize().get(), threadPoolProperties.actualMaximumSize(), threadPoolProperties.maxQueueSize().get(), threadPoolProperties.queueSizeRejectionThreshold().get(), threadPoolProperties.keepAliveTimeMinutes().get(), threadPoolProperties.getAllowMaximumSizeToDivergeFromCoreSize().get(), threadPoolProperties.metricsRollingStatisticalWindowBuckets().get(), threadPoolProperties.metricsRollingStatisticalWindowInMilliseconds().get()); }
public static CumulativeCollapserEventCounterStream getInstance(HystrixCollapserKey collapserKey, HystrixCollapserProperties properties) { final int counterMetricWindow = properties.metricsRollingStatisticalWindowInMilliseconds().get(); final int numCounterBuckets = properties.metricsRollingStatisticalWindowBuckets().get(); final int counterBucketSizeInMs = counterMetricWindow / numCounterBuckets; return getInstance(collapserKey, numCounterBuckets, counterBucketSizeInMs); }
public static RollingThreadPoolEventCounterStream getInstance(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolProperties properties) { final int counterMetricWindow = properties.metricsRollingStatisticalWindowInMilliseconds().get(); final int numCounterBuckets = properties.metricsRollingStatisticalWindowBuckets().get(); final int counterBucketSizeInMs = counterMetricWindow / numCounterBuckets; return getInstance(threadPoolKey, numCounterBuckets, counterBucketSizeInMs); }
public static RollingCommandLatencyDistributionStream getInstance(HystrixCommandKey commandKey, HystrixCommandProperties properties) { final int percentileMetricWindow = properties.metricsRollingPercentileWindowInMilliseconds().get(); final int numPercentileBuckets = properties.metricsRollingPercentileWindowBuckets().get(); final int percentileBucketSizeInMs = percentileMetricWindow / numPercentileBuckets; return getInstance(commandKey, numPercentileBuckets, percentileBucketSizeInMs); }
public static RollingCollapserEventCounterStream getInstance(HystrixCollapserKey collapserKey, HystrixCollapserProperties properties) { final int counterMetricWindow = properties.metricsRollingStatisticalWindowInMilliseconds().get(); final int numCounterBuckets = properties.metricsRollingStatisticalWindowBuckets().get(); final int counterBucketSizeInMs = counterMetricWindow / numCounterBuckets; return getInstance(collapserKey, numCounterBuckets, counterBucketSizeInMs); }