| | |
| | | package com.zy.core; |
| | | |
| | | import com.zy.common.utils.RedisUtil; |
| | | import com.zy.core.cache.MessageQueue; |
| | | import com.zy.core.cache.SlaveConnection; |
| | | import com.zy.core.enums.SlaveType; |
| | |
| | | private SlaveProperties slaveProperties; |
| | | @Autowired |
| | | private MainProcess mainProcess; |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | |
| | | @PostConstruct |
| | |
| | | // 初始化四向穿梭车 |
| | | News.info("初始化四向穿梭车......................................................"); |
| | | for (ShuttleSlave shuttleSlave : slaveProperties.getShuttle()) { |
| | | ShuttleThread shuttleThread = new ShuttleThread(shuttleSlave); |
| | | ShuttleThread shuttleThread = new ShuttleThread(shuttleSlave,redisUtil); |
| | | new Thread(shuttleThread).start(); |
| | | SlaveConnection.put(SlaveType.Shuttle, shuttleSlave.getId(), shuttleThread); |
| | | } |