liurunyu
10 天以前 4f6a3c11ad13c1182b6db3e7d9a47d50c828b7e2
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  ;
}