public void setStreamEventFactory(StreamEventFactory streamEventFactory) {
        this.streamEventFactory = streamEventFactory;
    }
Scheduler implementation to take periodic snapshots
modules/siddhi-core/src/main/java/io/siddhi/core/util/Scheduler.java