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