zhang
2025-05-20 1313906bb1eb983d3beece810035e7fc28d6a92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.zy.acs.gateway.job;
 
import com.zy.acs.gateway.Executors;
import com.zy.acs.gateway.domain.AgvPackage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
/**
 * 任务发布者
 * Created by vincent on 2019-04-03
 */
@Component("publisher")
public class DispatcherPublisher {
 
    @Autowired
    private Executors executors;
 
    public void publish(AgvPackage pac) {
        executors.getInstance().execute(new PacTask(pac));
    }
 
}