liurunyu
2025-02-26 5599ea07c557223e5a8f0acae755de852d2fe008
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.dy.common.mw;
 
/**
 * 单元接口
 *
 */
public interface UnitInterface {
    /**
     * 设置适配器
     * @throws Exception
     */
    void setAdapter(UnitAdapterInterface adapter) throws Exception ;
    /**
     * 启动单元运行
     * @throws Exception
     */
    void start(UnitCallbackInterface callback) throws Exception  ;
    /**
     * 停止单元运行
     * @throws Exception
     */
    void stop(UnitCallbackInterface callback) throws Exception  ;
}