Java Code Examples for com.netflix.hystrix.metric.HystrixThreadPoolCompletionStream

Following code examples demonstrate how to use com.netflix.hystrix.metric.HystrixThreadPoolCompletionStream from netflix-hystrix. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use com.netflix.hystrix.metric.HystrixThreadPoolCompletionStream and various code implementation of this class.
Example 1
Project : netflix-hystrix Source File : RollingThreadPoolEventCounterStream.java View Source Code on GitHub

    }

    private RollingThreadPoolEventCounterStream(HystrixThreadPoolKey threadPoolKey, int numCounterBuckets, int counterBucketSizeInMs,
                                                Func2<long[], HystrixCommandCompletion, long[]> reduceCommandCompletion,
                                                Func2<long[], long[], long[]> reduceBucket) {
        super(HystrixThreadPoolCompletionStream.getInstance(threadPoolKey), numCounterBuckets, counterBucketSizeInMs, reduceCommandCompletion, reduceBucket);
    }
			
Example 2
Project : netflix-hystrix Source File : CumulativeThreadPoolEventCounterStream.java View Source Code on GitHub

    }


    private CumulativeThreadPoolEventCounterStream(HystrixThreadPoolKey threadPoolKey, int numCounterBuckets, int counterBucketSizeInMs,
                                                   Func2<long[], HystrixCommandCompletion, long[]> reduceCommandCompletion,
                                                   Func2<long[], long[], long[]> reduceBucket) {
        super(HystrixThreadPoolCompletionStream.getInstance(threadPoolKey), numCounterBuckets, counterBucketSizeInMs, reduceCommandCompletion, reduceBucket);
    }