Examples of etaMillis()


Examples of com.google.appengine.api.taskqueue.TaskOptions.etaMillis()

      TaskOptions t = TaskOptions.Builder.withUrl(TASK_URL);
     
      t.param(AnalysisConstants.LOGS_EXPORTER_CONFIGURATION_PARAM, logsExporterConfigurationClassName);
      t.param(AnalysisConstants.LOG_RANGE_START_MS, Long.toString(logRangeStartMs));
      t.param(AnalysisConstants.LOG_RANGE_END_MS, Long.toString(logRangeEndMs));
      t.etaMillis(logRangeEndMs + AnalysisConstants.MILLIS_TO_DELAY_TASKS_BEFORE_RUNNING);
      t.method(Method.GET);
     
      String name = LogExportDirectToBigqueryTask.class.getSimpleName() + "_" + Long.toString(logRangeStartMs) + "_" + Long.toString(logRangeEndMs);
      log.warning("exportTaskName: " + name);
     
View Full Code Here

Examples of com.google.appengine.api.taskqueue.TaskOptions.etaMillis()

        .param(TASK_ID_PARAM, state.getTaskId())
        .param(JOB_ID_PARAM, state.getJobId())
        .param(SEQUENCE_NUMBER_PARAM, String.valueOf(state.getSequenceNumber()));
    taskOptions.header("Host", settings.getTaskQueueTarget());
    if (eta != null) {
      taskOptions.etaMillis(eta);
    }
    QueueFactory.getQueue(settings.getQueueName()).add(tx, taskOptions);
  }

  @Override
View Full Code Here

Examples of com.google.appengine.api.taskqueue.TaskOptions.etaMillis()

            switch (key) {
                case "countdownMillis":
                    options = options.countdownMillis(((Number)value).longValue());
                    break;
                case "etaMillis":
                    options = options.etaMillis(((Number)value).longValue());
                    break;
                case "taskName":
                    options = options.taskName(String.valueOf(value));
                    break;
                case "url":
View Full Code Here

Examples of com.google.appengine.api.taskqueue.TaskOptions.etaMillis()

    public void testTaskHandleContainsAllNecessaryProperties() throws Exception {
        String name = "testTaskHandleContainsAllNecessaryProperties-" + System.currentTimeMillis();
        Queue queue = QueueFactory.getDefaultQueue();

        TaskOptions options = withTaskName(name).payload("payload");
        options.etaMillis(0); // TODO -- remove this once NPE is fixewd

        TaskHandle handle = queue.add(options);

        assertEquals("default", handle.getQueueName());
        assertEquals(name, handle.getName());
View Full Code Here

Examples of com.google.appengine.api.taskqueue.TaskOptions.etaMillis()

    public void testTaskHandleContainsAllNecessaryProperties() throws Exception {
        String name = "testTaskHandleContainsAllNecessaryProperties-" + System.currentTimeMillis();
        Queue queue = QueueFactory.getDefaultQueue();

        TaskOptions options = withTaskName(name).payload("payload");
        options.etaMillis(0); // TODO -- remove this once NPE is fixewd

        TaskHandle handle = waitOnFuture(queue.addAsync(options));

        assertEquals("default", handle.getQueueName());
        assertEquals(name, handle.getName());
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.