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));
|
}
|
|
}
|