Examples of submit()


Examples of com.google.common.util.concurrent.ListeningScheduledExecutorService.submit()

      try {
         // this is sensitive to formatting as we are looking for the stack traces to match. if you wrap the below
         // line again, you'll need to change incrementInitialElement to 3 line numbers instead of 2.
         submission = getStackTraceAsString(incrementInitialElement(new RuntimeException(), 2))
               .replaceFirst(format(".*%s", LINE_SEPARATOR), "");
         sched.submit(runnableThrowsRTE()).get();
      } catch (ExecutionException e) {
         assertTraceHasSubmission(getStackTraceAsString(e), submission);
         assertTraceHasSubmission(getStackTraceAsString(e.getCause()), submission);
      }
   }
View Full Code Here

Examples of com.google.gwt.dom.client.FormElement.submit()

        });
        if (closeHandler != null) {
            popup.addCloseHandler(closeHandler);
        }
        popup.center();
        formElement.submit();
        return popup;
    }

    /**
     * Removes exported functions from the window context.<p>
View Full Code Here

Examples of com.google.gwt.user.client.ui.FormPanel.submit()

      // Add a 'submit' button.
      panel.add(new Button("Submit", new ClickHandler() {
        public void onClick(ClickEvent event) {
        upload.setName(upload.getFilename());
          form.submit();
        }
      }));

    footerPanel.add(form);
    deckPanel.add(footerPanel);
View Full Code Here

Examples of com.google.sitebricks.acceptance.page.SelectRoutingPage.submit()

  }

  public void shouldRenderDivForUnknownAndFooPut() {
    SelectRoutingPage page = loadPage();

    page.submit("shouldRenderDivForUnknownAndFooPut");
    assert page.hasExpectedDiv("fooPut");
    assert page.hasExpectedDivCount(1);
  }
 
  public void shouldRenderDivForRedirectPut() {
View Full Code Here

Examples of com.google_voltpatches.common.util.concurrent.ListeningExecutorService.submit()

    public static <T> ListenableFuture<T> submitCompressionTask(Callable<T> task) {
        VoltDBInterface instance = VoltDB.instance();
        if (VoltDB.instance() != null) {
            ListeningExecutorService es = instance.getComputationService();
            if (es != null) {
                return es.submit(task);
            }
        }
        return m_executor.submit(task);
    }
View Full Code Here

Examples of com.hazelcast.client.spi.ClientExecutionService.submit()

    protected void submitLoadAllTask(final CacheLoadAllRequest request, final CompletionListener completionListener) {
        final LoadAllTask loadAllTask = new LoadAllTask(request, completionListener);
        final ClientExecutionService executionService = clientContext.getExecutionService();

        final ICompletableFuture<?> future = executionService.submit(loadAllTask);
        loadAllTasks.add(future);
        future.andThen(new ExecutionCallback() {
            @Override
            public void onResponse(Object response) {
                loadAllTasks.remove(future);
View Full Code Here

Examples of com.hazelcast.core.IExecutorService.submit()

                            .size());
                }
                Member member = members.get(memberIndex);
                future = executorService.submitToMember(callable, member);
            } else {
                future = executorService.submit(callable);
            }
            println("Result: " + future.get());
        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (ExecutionException e) {
View Full Code Here

Examples of com.hazelcast.mapreduce.ReducingSubmittableJob.submit()

                reducingJob = mappingJob.reducer(reducerFactory);
            } else {
                reducingJob = mappingJob.combiner(combinerFactory).reducer(reducerFactory);
            }

            ICompletableFuture<Result> future = reducingJob.submit(collator);
            return future.get();
        } catch (Exception e) {
            //todo: not what we want because it can lead to wrapping of even hazelcastexception
            throw new HazelcastException(e);
        }
View Full Code Here

Examples of com.hazelcast.spi.ExecutionService.submit()

    @Override
    public void loadKeys(List<Data> keys, boolean replaceExistingValues) {
        setLoaded(false);
        final NodeEngine nodeEngine = mapServiceContext.getNodeEngine();
        ExecutionService executionService = nodeEngine.getExecutionService();
        executionService.submit("hz:map-loadAllKeys", new LoadAllKeysTask(keys, replaceExistingValues));
    }

    @Override
    public void loadAllKeys() {
        if (isLoaded()) {
View Full Code Here

Examples of com.intellij.util.concurrency.SequentialTaskExecutor.submit()

              }
            }
          });

          try {
            projectTaskQueue.submit(new Runnable() {
              @Override
              public void run() {
                Throwable execFailure = null;
                try {
                  if (project.isDisposed()) {
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.