liurunyu
2024-09-07 9ad6b0179be4d351105f1507779d4f41a3a41953
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  ;
}