This class is intended to be static (so it may be shared) and thread safe.
This class works effectivley in one of two modes. Either "NOW" or "Sliding Window." With NOW which ever Result List the user specified last using .PushResultList() is the one that will be returned. With a Sliding Window, the youngest result list that is older than the sliding windown time value (1, 3, or 5 minutes), is returned.
public static class ResultListSlidingWindow| Mode | Gets or Sets the Mode. |
| ClearCache | Removes all Result Lists. |
| GetResultList | Get the Result List to use during the next comparison, to calculate the RankDelta. |
| PushResultList |
When a Result List gets generated, the user should push the Result List into the ResultListSlidingWindow using this method.
When the MODE is NOW, the next time the user calls GetResultList() this Result List is returned. When the MODE is a sliding window (1, 3, or 5 mins), the youngest Result List that is older then the requested time span is returned. |