Examples of cancel()


Examples of org.springframework.cassandra.core.Cancellable.cancel()

  public void testString_AsynchronousQueryListener_Cancelled() throws InterruptedException {
    new AsynchronousQueryListenerTestTemplate() {
      @Override
      void doAsyncQuery(Book b, BasicListener listener) {
        Cancellable qc = t.queryAsynchronously(cql(b), listener);
        qc.cancel();
      }
    }.test();
  }

  @Test
View Full Code Here

Examples of org.strecks.action.BasicSubmitAction.cancel()

    ActionMapping mapping = createStrictMock(ActionMapping.class);
    DelegatingForm form = createStrictMock(DelegatingForm.class);
    HttpServletRequest request = createStrictMock(HttpServletRequest.class);

    expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(Boolean.TRUE);
    expect(actionBean.cancel()).andReturn("success");
    expect(mapping.findForward("success")).andReturn(actionForward);

    replay(actionBean);
    replay(mapping);
    replay(form);
View Full Code Here

Examples of org.strecks.action.NavigableSubmitAction.cancel()

    ActionMapping mapping = context.getMapping();

    if (cancelled)
    {
      action.cancel();
    }
    else
    {

      // now figure out what method to execute and do so
View Full Code Here

Examples of org.strecks.action.basic.impl.NavigableLookupDispatchAction.cancel()

    ActionMapping mapping = createMock(ActionMapping.class);
    HttpServletRequest request = createMock(HttpServletRequest.class);

    expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(Boolean.TRUE);
    actionBean.cancel();
    expect(actionBean.getNavigationResult()).andReturn("cancelled");
    expect(mapping.findForward("cancelled")).andReturn(actionForward);

    replay(actionBean);
    replay(mapping);
View Full Code Here

Examples of org.strecks.action.basic.impl.SimpleLookupDispatchAction.cancel()

    ActionMapping mapping = createMock(ActionMapping.class);
    HttpServletRequest request = createMock(HttpServletRequest.class);

    expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(Boolean.TRUE);
    expect(actionBean.cancel()).andReturn("cancelled");
    expect(mapping.findForward("cancelled")).andReturn(actionForward);

    replay(actionBean);
    replay(mapping);
    replay(request);
View Full Code Here

Examples of org.strecks.action.navigable.impl.NavigableFormSubmitBean.cancel()

    ActionMapping mapping = createStrictMock(ActionMapping.class);
    DelegatingForm form = createStrictMock(DelegatingForm.class);
    HttpServletRequest request = createStrictMock(HttpServletRequest.class);

    expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(Boolean.TRUE);
    actionBean.cancel();
    expect(actionBean.getSuccessResult()).andReturn("cancel");
    expect(mapping.findForward("cancel")).andReturn(actionForward);

    replay(actionBean);
    replay(mapping);
View Full Code Here

Examples of org.teiid.translator.Execution.cancel()

              private int[] results;
              private int index;
             
              @Override
              public void cancel() throws TranslatorException {
                exec.cancel();
              }
              @Override
              public void close() {
                exec.close();
              }
View Full Code Here

Examples of org.voltcore.utils.DeferredSerialization.cancel()

    @Override
    synchronized void shutdown() {
        super.shutdown();
        DeferredSerialization ds = null;
        while ((ds = m_queuedWrites.poll()) != null) {
            ds.cancel();
        }
    }

    @Override
    public synchronized int calculatePendingWriteDelta(final long now) {
View Full Code Here

Examples of org.voltdb.utils.DeferredSerialization.cancel()

            c.discard();
        }
        updateQueued(-bytesReleased, false);
        DeferredSerialization ds = null;
        while ((ds = m_queuedWrites.poll()) != null) {
            ds.cancel();
        }
    }

    @Override
    public synchronized int calculatePendingWriteDelta(final long now) {
View Full Code Here

Examples of org.wicketstuff.progressbar.spring.Task.cancel()

    data[0] = 0;
    task.reset();
    assertEquals("Task progress is 0 after reset", 0, task.getProgress());
    // cancel should stop task at 50%
    task.cancel();
    Long newTaskId = taskService.scheduleAndStart(task);
    assertFalse("Unique id generated", taskId.equals(newTaskId));

    assertEquals("Cancelled after 50%", 1, data[0]);
    assertTrue("Task was cancelled", task.isCancelled());
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.