public RuntimeEnvironmentBuilder schedulerService ( Object globalScheduler ) { if ( globalScheduler == null ) { return this ; } if ( ! ( globalScheduler instanceof GlobalSchedulerService ) ) { throw new IllegalArgumentException ( "Argument is not of type GlobalSchedulerService" ) ; } _runtimeEnvironment . setSchedulerService ( ( GlobalSchedulerService ) globalScheduler ) ; return this ; }
Sets the schedulerService .