| | |
| | | private QueueSequenceService queueSequenceService; |
| | | |
| | | List<LocalTime> timeslotList = null; |
| | | Integer timeslotLength = 0; |
| | | |
| | | ScheduledTask startBizTask = null; |
| | | ScheduledTask closeBizTask = null; |
| | |
| | | resetRoomTask = taskRegistrar.scheduleCronTask(new CronTask(() -> { |
| | | System.out.println("Room Reset Task executed at: " + System.currentTimeMillis()); |
| | | roomService.resetRoom(false); |
| | | queueSequenceService.resetQueueSequence(); |
| | | //queueSequenceService.resetQueueSequence(); |
| | | }, roomResetCronExpression)); |
| | | |
| | | taskRegistrar.afterPropertiesSet(); |
| | |
| | | @Override |
| | | public void readTimeSlotConfig() { |
| | | String strBookTimeslotLength = configApi.getConfigValueByKey(BOOK_TIMESLOT_LENGTH); |
| | | timeslotLength = Integer.valueOf(strBookTimeslotLength); |
| | | //String strBookTimeslotList = configApi.getConfigValueByKey(BOOK_TIMESLOT_LIST); |
| | | //timeslotList = Utils.parseTimeSlotList(strBookTimeslotList, Integer.valueOf(strBookTimeslotLength)); |
| | | } |
| | |
| | | return timeslotList; |
| | | } |
| | | |
| | | @Override |
| | | public Integer getTimeslotLength() { |
| | | return timeslotLength; |
| | | } |
| | | |
| | | } |