@Override
        public Map<String, Object> snapshot() {
            Map<String, Object> state = new HashMap<>();

            if (outputExpectsExpiredEvents || findToBeExecuted) {
                state.put("ExpiredEventQueue", expiredEventQueue.getSnapshot());
            }
            state.put("ResetEvent", resetEvent);
            return state;
        }
Implementation of {@link WindowProcessor} which represent a Batch Window that aggregate batch of incoming events
together.
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/window/BatchWindowProcessor.java