change behaviour of the batch windows

now accumulate method is called when event is enqueued into window,
and when window is full compensate method is called with all the
events leaving the window.