| | |
| | | public Integer getTaskNo() { |
| | | RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class); |
| | | if (null != redisUtil) { |
| | | Object o = redisUtil.get(RedisKeyType.SHUTTLE.key + this.shuttleNo); |
| | | Object o = redisUtil.get(RedisKeyType.SHUTTLE_FLAG.key + this.shuttleNo); |
| | | if (!Cools.isEmpty(o)) { |
| | | this.taskNo = Integer.parseInt(String.valueOf(o)); |
| | | } |
| | |
| | | public synchronized void setSyncTaskNo(Integer taskNo) { |
| | | RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class); |
| | | if (null != redisUtil) { |
| | | redisUtil.set(RedisKeyType.SHUTTLE.key + this.shuttleNo, taskNo); |
| | | redisUtil.set(RedisKeyType.SHUTTLE_FLAG.key + this.shuttleNo, taskNo); |
| | | this.taskNo = taskNo; |
| | | } |
| | | } |