| | |
| | | @Scheduled(cron = "0/1 * * * * ? ") |
| | | private void demo() throws InterruptedException { |
| | | if (!this.autoDemo) { return; } |
| | | int busLimit = Integer.parseInt(configService.getVal("busLimit")); |
| | | int busLimit = configService.getVal("busLimit", Integer.class); |
| | | if (autoSize != null) { |
| | | busLimit = autoSize; |
| | | } |
| | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void demo1() throws InterruptedException { |
| | | if (!this.autoDemo1) { return; } |
| | | int busLimit = Integer.parseInt(configService.getVal("busLimit")); |
| | | int busLimit = configService.getVal("busLimit", Integer.class); |
| | | if (autoSize != null) { |
| | | busLimit = autoSize; |
| | | } |
| | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void demo2() throws InterruptedException { |
| | | if (!this.autoDemo2) { return; } |
| | | int busLimit = Integer.parseInt(configService.getVal("busLimit")); |
| | | int busLimit = configService.getVal("busLimit", Integer.class); |
| | | if (autoSize != null) { |
| | | busLimit = autoSize; |
| | | } |