public class Dispatcher
extends java.lang.Object
Constructor and Description |
---|
Dispatcher(DispatcherListener mListener) |
Dispatcher(DispatcherListener mListener,
boolean isRouteMode) |
Dispatcher(DispatcherListener mListener,
boolean isRouteMode,
boolean isFullDuplex) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
清空缓存的任务
|
void |
deal(org.json.JSONObject object,
java.lang.String currentRecorderId)
解析云端DM返回结果
|
boolean |
hasCache()
Dispatcher 中是否包含有未执行任务
|
void |
notifyNlgEnd()
nlg end
|
void |
release()
销毁资源
|
void |
resetCounter()
重置拒识计数
|
void |
setEnableAlignment(boolean enableAlignment) |
public Dispatcher(DispatcherListener mListener, boolean isRouteMode, boolean isFullDuplex)
public Dispatcher(DispatcherListener mListener, boolean isRouteMode)
public Dispatcher(DispatcherListener mListener)
public void deal(org.json.JSONObject object, java.lang.String currentRecorderId)
object
- 对话服务下发的结果currentRecorderId
- 当前轮请求的recorderIdpublic boolean hasCache()
public void clearCache()
public void resetCounter()
public void release()
public void notifyNlgEnd()
public void setEnableAlignment(boolean enableAlignment)