Examples of consume()


Examples of org.codehaus.activemq.message.PacketListener.consume()

    public void consume(Packet packet) {
        //do processing
        //avoid a lock
        PacketListener listener = getPacketListener();
        if (listener != null) {
            listener.consume(packet);
        }
    }

    /**
     * handle exception from the embedded channel
View Full Code Here

Examples of org.cruxframework.crux.core.rebind.screen.widget.ViewFactoryCreator.WidgetConsumer.consume()

        WidgetConsumer consumer = widgetCreator.getViewFactory().getScreenWidgetConsumer();
        if (consumer != null && consumer instanceof LazyCompatibleWidgetConsumer && lazyChecker != null && lazyChecker.isLazy(context.getWidgetElement()))
        {
          childWidget = lazyFactory.getLazyPanel(out, context.getChildElement(), context.getWidgetId(), LazyPanelWrappingType.wrapChildren);
          String lazyPanelId = ViewFactoryUtils.getLazyPanelId(context.getWidgetId(), LazyPanelWrappingType.wrapChildren);
          consumer.consume(out, lazyPanelId, childWidget, widgetCreator.getWidgetFactoryDeclaration(), context.getWidgetElement());
          ((LazyCompatibleWidgetConsumer)consumer).handleLazyWrapChildrenCreation(out, context.getWidgetId());
        }
        else
        {
          childWidget = widgetCreator.createChildWidget(out, context.getChildElement(), context);
View Full Code Here

Examples of org.eclipse.jetty.spdy.api.DataInfo.consume()

        stream.data(new BytesDataInfo(new byte[size * 2], true), new Callback.Adapter());
        Assert.assertFalse(dataLatch.await(1, TimeUnit.SECONDS));

        // Consume the data arrived to server, this will resume flow control
        DataInfo dataInfo = dataInfoRef.get();
        dataInfo.consume(dataInfo.length());

        Assert.assertTrue(dataLatch.await(5, TimeUnit.SECONDS));
    }

    @Test
View Full Code Here

Examples of org.jboss.dna.common.text.TokenStream.consume()

                parseNamespaceMapping(tokens);
            } else if (tokens.matches("[", ANY_VALUE, "]")) {
                parseNodeTypeDefinition(tokens, outputPath);
            } else {
                Position position = tokens.previousPosition();
                throw new ParsingException(position, CndI18n.expectedNamespaceOrNodeDefinition.text(tokens.consume(),
                                                                                                    position.getLine(),
                                                                                                    position.getColumn()));
            }
        }
    }
View Full Code Here

Examples of org.jboss.dna.sequencer.ddl.DdlTokenStream.consume()

                parseColumnDefinition(localTokens, tableNode, true);
            } else {
                // THIS IS AN ERROR. NOTHING FOUND.
                // NEED TO absorb tokens
                while (localTokens.hasNext() && !localTokens.matches(COMMA)) {
                    unusedTokensSB.append(SPACE).append(localTokens.consume());
                }
            }
        } while (localTokens.canConsume(COMMA));

        if (unusedTokensSB.length() > 0) {
View Full Code Here

Examples of org.jboss.wsf.spi.tools.WSContractConsumer.consume()

      if(target!=null)
         importer.setTarget(target);

      try
      {
         importer.consume(wsdl);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not import. (use --verbose to see full traces)");
View Full Code Here

Examples of org.jnode.driver.input.KeyboardEvent.consume()

                    // Leave the event unconsumed.
                    consume = false;
                    break;
            }
            if (consume) {
                event.consume();
            }
            return breakChar;
        } else {
            return false;
        }
View Full Code Here

Examples of org.modeshape.common.text.TokenStream.consume()

                parseNamespaceMapping(tokens);
            } else if (tokens.matches("[", ANY_VALUE, "]")) {
                parseNodeTypeDefinition(tokens);
            } else {
                Position position = tokens.previousPosition();
                throw new ParsingException(position, CndI18n.expectedNamespaceOrNodeDefinition.text(tokens.consume(),
                                                                                                    position.getLine(),
                                                                                                    position.getColumn()));
            }
        }
    }
View Full Code Here

Examples of org.modeshape.sequencer.ddl.DdlTokenStream.consume()

    private void parseIndexColumnExpressionList( final String columnExpressionList,
                                                 final AstNode indexNode ) {
        final DdlTokenStream tokens = new DdlTokenStream(columnExpressionList, DdlTokenStream.ddlTokenizer(false), false);
        tokens.start();

        tokens.consume(L_PAREN); // must have opening paren
        int numLeft = 1;
        int numRight = 0;

        // must have content between the parens
        if (!tokens.matches(R_PAREN)) {
View Full Code Here

Examples of org.pentaho.reporting.libraries.designtime.swing.ConsumableActionEvent.consume()

    if (e instanceof ConsumableActionEvent)
    {
      // indicate that this event should not be handled ..
      final ConsumableActionEvent ce = (ConsumableActionEvent) e;
      ce.consume();
    }

    LogManager.shutdown();
    System.exit(0);
  }
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.