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