public void enqueueCommand(TAICommand command, TARequest request, TAIResponseListener listener) throws TANoSuchCommandException { if (command != null) { command.setRequest(request); command.setResponseListener(listener); TACommandQueueManager.getInstance().enqueue(command); } }
public void ensureInitialized() { if (!initialized) { initialized = true; TALogger.i(TACommandExecutor.this, "CommandExecutor初始化"); TACommandQueueManager.getInstance().initialize(); TALogger.i(TACommandExecutor.this, "CommandExecutor初始化"); } }