协议接口
该接口的内容如下
/**
* adapter,被用来调用connector
*/
public void setAdapter(Adapter adapter);
public Adapter getAdapter();
/**
* 线程执行器
*/
public Executor getExecutor();
/**
* 初始化协议
*/
public void init() throws Exception;
/**
* 启动
*/
public void start() throws Exception;
/**
* 暂停
*/
public void pause() throws Exception;
/**
* 重启.
*/
public void resume() throws Exception;
/**
* 停止.
*/
public void stop() throws Exception;
/**
* 销毁.
*/
public void destroy() throws Exception;
/**
* Requires APR/native library
*/
public boolean isAprRequired();