Examples of queue()


Examples of com.caucho.util.Alarm.queue()

      if (alarm == null)
        return;

      _rule.setEnabled(_isEnable);

      alarm.queue(nextTime - now);
    }

    public void handleAlarm(Alarm alarm)
    {
      alarm = _alarm;
View Full Code Here

Examples of com.flipkart.phantom.task.impl.TaskHandlerExecutor.queue()

                /* execute */
                if (executor.getCallInvocationType() == TaskHandler.SYNC_CALL) {
                    result = executor.execute();
                } else {
                    /* dont wait for the result. send back a response that the call has been dispatched for async execution */
                    executor.queue();
                    result = new TaskResult(true, TaskHandlerExecutor.ASYNC_QUEUED);
                }
                LOGGER.debug("The output is: " + result);

                // write the results to the socket output
View Full Code Here

Examples of com.fluxcapacitor.edge.hystrix.AddLogCommand.queue()

      requestCounter.increment();

      // invoke service through Hystrix
      HystrixCommand<String> getCommand = new AddLogCommand(key, log);
     
      Future<String> future = getCommand.queue();
     
      String responseString = future.get();

      // increment the fallback counter if the response came from a
      // fallback
View Full Code Here

Examples of com.fluxcapacitor.edge.hystrix.GetLogsCommand.queue()

      // increment request counter
      requestCounter.increment();

      // invoke service through Hystrix
      HystrixCommand<String> getCommand = new GetLogsCommand(key);
      Future<String> future = getCommand.queue();
      String responseString = future.get();

      // increment the fallback counter if the response came from a
      // fallback
      // TODO: this isn't needed as the hystrix framework exports its own
View Full Code Here

Examples of com.gitblit.service.MailService.queue()

    Mailing mailing = Mailing.newPlain();
    mailing.setRecipients(settings.getStrings(Keys.mail.adminAddresses));
    Message message = mail.createMessage(mailing);
    message.setSubject("Test");
    message.setText("Lägger till andra stycket i ny fil. UTF-8 encoded");
    mail.queue(message);
    mail.run();

    assertTrue("mail queue is not empty!", mail.hasEmptyQueue());
  }
}
View Full Code Here

Examples of com.google.gwt.query.client.GQuery.queue()

        animationRunCounter ++;
      }
    });

    // We do the assertions after all effects have been run
    g.queue(new Function() {
      public void f() {
        // after running queue method it is mandatory to call dequeue,
        // otherwise the queue get stuck
        $(this).dequeue();
        // Check that all animations and the delayed function has been run
View Full Code Here

Examples of com.intellij.openapi.progress.Task.queue()

                indicator.setFraction(1.0);
            }
        }.setCancelText("Stop Haddock installation");
        ApplicationManager.getApplication().invokeLater(new Runnable() {
            public void run() {
                haddockBackgroundTask.queue();
            }
        });
    }
}
View Full Code Here

Examples of com.intellij.util.ui.update.MergingUpdateQueue.queue()

        Document document = e.getDocument();
        final FileDocumentManager fileDocumentManager = FileDocumentManager.getInstance();
        VirtualFile file = fileDocumentManager.getFile(document);
        if (file == null || file.getFileType() != BnfFileType.INSTANCE) return;
        finalQueue.cancelAllUpdates();
        finalQueue.queue(new Update(Boolean.TRUE, true) {
          @Override
          public void run() {
            FileManager fileManager = ((PsiManagerEx)PsiManager.getInstance(project)).getFileManager();
            for (FileEditor fileEditor : fileEditorManager.getAllEditors()) {
              if (!(fileEditor instanceof TextEditor)) continue;
View Full Code Here

Examples of com.mojang.minecraft.net.NetworkPlayer.queue()

                                       var37 = var67;
                                       var5 = var10001;
                                       if(var5 >= 0) {
                                          var53 = (byte)(var53 + 128);
                                          if((var61 = (NetworkPlayer)var42.players.get(Byte.valueOf(var5))) != null) {
                                             var61.queue(var37, var44, var49, (float)(var53 * 360) / 256.0F, (float)(var9 * 360) / 256.0F);
                                          }
                                       }
                                    } else if(var6 == PacketType.ROTATION_UPDATE) {
                                       var10001 = ((Byte)var7[0]).byteValue();
                                       var67 = ((Byte)var7[1]).byteValue();
View Full Code Here

Examples of edu.brown.hstore.util.MapReduceHelperThread.queue()

        ts.setShufflePhase();
       
        if (debug.val)
            LOG.debug(String.format("Txn #%d - I am swithing to SHUFFLE phase, go to MR_helper thread",this.getTransactionId()));
        // enqueue this MapReduceTransaction to do shuffle work
        mr_helper.queue(this.ts);
    }
   
    public void runOrigCallback() {
        this.getOrigCallback().run(this.builder.build());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.