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