public void setScheduler(final Scheduler scheduler) {
        this.scheduler = scheduler;
    }
Sets scheduler.

@param scheduler the scheduler
shenyu-common/src/main/java/org/apache/shenyu/common/config/ShenyuConfig.java