Examples of Callback


Examples of org.ch3ck3r.jgbx.callbacks.Callback

          }
        }
        else {
          // received callback
          logger.debug("Received callback: [" + length + "] [" + handle + "] " + message);
          final Callback callbackData = this.parser.callbackFromXML(message);
          logger.debug(callbackData);
        }
      }
      catch (final Throwable e) {
        if (!this.shouldExit) {
View Full Code Here

Examples of org.codehaus.activemq.util.Callback

        }
    }

    public synchronized void start() throws JMSException {
        final QueueMessageContainer container = this;
        transactionTemplate.run(new Callback() {
            public void execute() throws Throwable {
                messageStore.start();
                messageStore.recover(container);
            }
        });
View Full Code Here

Examples of org.commoncrawl.async.Callbacks.Callback

    _maxConcurrentQueries = getConfiguration().getInt(SLAVE_MAX_CONCURRENT_QUERIES_PARAM, SLAVE_MAX_CONCURRENT_QUERIES_DEFAULT);
   
    // terminate all active queries ...
    terminateAndFlushAllQueries(
       
        new Callback() {

          @Override
          public void execute() {

            // we are still in the async thread here ... all existing queries have been cancelled at this point ...
View Full Code Here

Examples of org.cruxframework.crux.core.client.css.transition.Transition.Callback

    if(widget == null)
    {
      return;
    }
    final Element element = widget.getElement();
    addCallbackHandler(element, duration, new Callback()
    {
      @Override
      public void onTransitionCompleted()
      {
        clearTransitionProperties(element);
View Full Code Here

Examples of org.docx4j.TraversalUtil.Callback

        .getJaxbElement();
    Body body = wmlDocumentEl.getBody();

    new TraversalUtil(body,

    new Callback() {

      String indent = "";

      @Override
      public List<Object> apply(Object o) {
View Full Code Here

Examples of org.eclipse.jetty.util.Callback

     * @param content The content to send
     * @param callback The callback to use to notify success or failure
     */
    public void sendContent(ByteBuffer content, final Callback callback)
    {
        write(content,true,new Callback()
        {
            @Override
            public void succeeded()
            {
                closed();
View Full Code Here

Examples of org.eclipse.swt.internal.Callback

  printerList = new PrinterData [0];
  if (OS.GTK_VERSION < OS.VERSION (2, 10, 0) || disablePrinting) {
    return printerList;
  }
  gtk_init();
  Callback printerCallback = new Callback(Printer.class, "GtkPrinterFunc_List", 2); //$NON-NLS-1$
  long /*int*/ GtkPrinterFunc_List = printerCallback.getAddress();
  if (GtkPrinterFunc_List == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
  OS.gtk_enumerate_printers(GtkPrinterFunc_List, 0, 0, true);
  /*
  * This call to gdk_threads_leave() is a temporary work around
  * to avoid deadlocks when gdk_threads_init() is called by native
  * code outside of SWT (i.e AWT, etc). It ensures that the current
  * thread leaves the GTK lock acquired by the function above.
  */
  OS.gdk_threads_leave();
  printerCallback.dispose ();
  return printerList;
}
View Full Code Here

Examples of org.exolab.jms.net.Callback

        ORB client = getClientORB();
        Registry registry = client.getRegistry(getConnectionProperties());
        CallbackService service = (CallbackService) registry.lookup("service");

        LoggingCallback callback = new LoggingCallback();
        Callback callbackProxy = (Callback) client.exportObjectTo(callback,
                                                                  getServerURI());
        service.addCallback(callbackProxy);

        assertNull(serviceImpl.getException());
        client.shutdown();
View Full Code Here

Examples of org.fonteditor.utilities.callback.CallBack

    FEPointList fepl = glyph.getFEPointList(gdo);
    fepl.executeOnEachPoint(getCallBackFix());
  }

  public CallBack getCallBackFix() {
    return new CallBack() {
      public void callback(Object o) {
        FEPoint point = (FEPoint) o;
        InstructionStream is = glyph.getInstructionStream();
        is.setPoint(point, point.getX() + dx, point.getY() + dy);
      }
View Full Code Here

Examples of org.fusesource.hawtdb.internal.page.TransactionBenchmarker.Callback

        });
    }
   
   
    private void preallocate(final int INITIAL_PAGE_COUNT) {
        benchmark.setSetup(new Callback(){
            public void run(TxPageFileFactory pff) throws Exception {
                Transaction tx = pff.getTxPageFile().tx();
                for (int i = 0; i < INITIAL_PAGE_COUNT; i++) {
                    int page = tx.allocator().alloc(1);
                    tx.write(page, new Buffer(THE_DATA));
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.