自动化立体仓库 - WCS系统
123
ZY
9 天以前 1a1e3398d15027a65e56e0ed82e54f3a4feea0b6
src/main/java/com/zy/core/cache/MessageQueue.java
@@ -1,6 +1,5 @@
package com.zy.core.cache;
import com.zy.asrs.utils.CommandUtils;
import com.zy.core.Slave;
import com.zy.core.enums.SlaveType;
import com.zy.core.model.Task;
@@ -62,7 +61,6 @@
     * 如果发现队列已满无法添加的话,会直接返回false。
     */
    public static boolean offer(SlaveType type, Integer id, Task task) {
        CommandUtils.offer(type, id, task);
        switch (type) {
            case Crn:
                return CRN_EXCHANGE.get(id).offer(task);
@@ -126,10 +124,10 @@
        }
    }
    public static void clear(SlaveType type, Integer id){
    public static void clear(SlaveType type, Integer id) {
        switch (type) {
            case Crn:
                CRN_EXCHANGE.get(id).clear();
                break;
            case Devp: