Examples of cancel()


Examples of org.jboss.remotingjmx.protocol.CancellableDataOutputStream.cancel()

    protected void write(MessageWriter writer) throws IOException {
        CancellableDataOutputStream output = new CancellableDataOutputStream(channel.writeMessage());
        try {
            writer.write(output);
        } catch (IOException e) {
            output.cancel();
            throw e;
        } finally {
            IoUtils.safeClose(output);
        }
    }
View Full Code Here

Examples of org.jboss.seam.async.QuartzTriggerHandle.cancel()

        payment.setQuartzTriggerHandle(null);
        payment.setActive(false);
       
        try
        {
            handle.cancel();
        }
        catch (Exception nsole)
        {
            FacesMessages.instance().add("Payment already processed");
        }
View Full Code Here

Examples of org.jboss.seam.example.hibernate.BookingListAction.cancel()

         protected void invokeApplication()
         {
            ListDataModel bookings = (ListDataModel) Component.getInstance("bookings", false);
            bookings.setRowIndex(0);
            BookingListAction bookingList = (BookingListAction) Component.getInstance("bookingList", true);
            String outcome = bookingList.cancel();
            assert "cancelled".equals( outcome );
         }

         @Override
         protected void renderResponse()
View Full Code Here

Examples of org.jboss.util.timeout.Timeout.cancel()

        
         while (iter.hasNext())
         {
            Timeout timeout = (Timeout)iter.next();
           
            timeout.cancel();
         }
        
         scheduledDeliveries.clear();
      }
   }
View Full Code Here

Examples of org.jboss.util.timeout.TimeoutFactory.cancel()

      long at = System.currentTimeMillis() + 300;
      for (int i = 0; i < times; i++)
      {
         tf.schedule(at, (TimeoutTarget)tt);
      }
      tf.cancel();
      Thread.sleep(500);
      assertEquals(0, count.get());
   }

   public void testBlockingSmallThreadPool() throws Exception
View Full Code Here

Examples of org.jbpm.pvm.internal.session.TimerSession.cancel()

      List<Timer> timers = timerSession.findTimersByExecution(this);
      for (Timer timer: timers) {
       
        Job job = Environment.getFromCurrent(JobImpl.class, false);
        if (timer!=job) {
          timerSession.cancel(timer);
        }
      }
    }
  }
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.TaskInstance.cancel()

        // Do this until http://jira.jboss.com/jira/browse/JBPM-392 is
        // resolved

        log.info("cancel task " + ti.getId());
        ti.setSignalling(false);
        ti.cancel();
      }
    }
  }

}
View Full Code Here

Examples of org.jdesktop.core.animation.timing.Animator.cancel()

      throw new NullPointerException();
    }
   
    if (controller.hasOffsetAnimator()) {
      Animator animator = controller.getOffsetAnimator();
      animator.cancel();
      controller.setOffsetAnimator(null);
    }

    Rectangle bounds = controller.getItemBounds();
    bounds.x += controller.getOffset();
View Full Code Here

Examples of org.jdesktop.swingworker.SwingWorker.cancel()

        // Check to see if there is an active worker for the give node. Since
        // this is always called on the AWT Event Thread, we do not need to
        // separately synchronize around the Map of workers.
        SwingWorker worker = workerMap.get(node);
        if (worker != null) {
            worker.cancel(true);
            workerMap.remove(node);
            updateCursor();
        }
    }
View Full Code Here

Examples of org.jetbrains.jps.api.RequestFuture.cancel()

    final Collection<RequestFuture> futures = new SmartList<RequestFuture>();
    synchronized (myAutomakeFutures) {
      for (Map.Entry<RequestFuture, Project> entry : myAutomakeFutures.entrySet()) {
        if (entry.getValue().equals(project)) {
          final RequestFuture future = entry.getKey();
          future.cancel(false);
          futures.add(future);
        }
      }
    }
    return futures;
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.