this.agentInstanceContext = agentInstanceContext;
this.timeWindowViewFactory = timeWindowViewFactory;
this.millisecondsBeforeExpiry = millisecondsBeforeExpiry;
this.viewUpdatedCollection = viewUpdatedCollection;
this.scheduleSlot = agentInstanceContext.getStatementContext().getScheduleBucket().allocateSlot();
this.timeWindow = new TimeWindow(agentInstanceContext.isRemoveStream());
ScheduleHandleCallback callback = new ScheduleHandleCallback() {
public void scheduledTrigger(ExtensionServicesContext extensionServicesContext)
{
TimeWindowView.this.expire();