[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Container for events per time slot. The time is provided as long milliseconds by client classes. Events are for a specified timestamp and the implementation creates and adds the event to a slot for that timestamp. Events can be expired from the window via the expireEvents method when their timestamp is before (or less then) an expiry timestamp passed in. Expiry removes the event from the window. The window allows iteration through its contents. It is assumed that the timestamp passed to the add method is ascending. The window is backed by a List reflecting the timestamp order rather then any sorted map or linked hash map for performance reasons.

The following tables list the members exposed by the TimeWindow type.

Public Methods

  NameDescription
Add
Adds event to the time window for the specified timestamp.

Equals (Inherited from Object.)
ExpireEvents
Return and remove events in time-slots earlier (less) then the timestamp passed in, returning the list of events expired.

GetEnumerator
Returns event iterator.

GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
ToString (Inherited from Object.)

Protected Methods

  NameDescription
Finalize (Inherited from Object.)
MemberwiseClone (Inherited from Object.)

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationIEnumerable.System.Collections.IEnumerable.GetEnumerator
Returns an enumerator that iterates through a collection.