@Override
        public boolean canDestroy() {
            return (currentEventQueue == null || currentEventQueue.getFirst() == null)
                    && (expiredEventQueue == null || expiredEventQueue.getFirst() == null)
                    && resetEvent == null;
        }
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