CountBasedSlidingWindow
Parameters
capacity
the fixed size of the window.
minimumThroughput
the minimum number of calls that need to be recorded in the window for the failure rate to be calculated. Even if capacity is reached, the failure rate will not be calculated if the number of calls recorded in the window is less than this value.