public void restore(Map<String, Object> state) {
            if (expiredEventQueue != null) {
                expiredEventQueue.restore((SnapshotStateList) state.get("ExpiredEventQueue"));
            }
            if (currentEventQueue != null) {
                currentEventQueue.restore((SnapshotStateList) state.get("CurrentEventQueue"));
            }
            resetEvent = (StreamEvent) state.get("ResetEvent");
        }
Implementation of {@link WindowProcessor} which represent a Batch Window operating based on time.
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/window/TimeBatchWindowProcessor.java