Examples of pull()


Examples of com.alibaba.rocketmq.client.consumer.DefaultMQPullConsumer.pull()

            mq.setBrokerName(brokerName);
            mq.setQueueId(Integer.parseInt(queueId));

            defaultMQPullConsumer.start();

            PullResult pullResult = defaultMQPullConsumer.pull(mq, "*", Long.parseLong(offset), 1);
            if (pullResult != null) {
                switch (pullResult.getPullStatus()) {
                case FOUND:
                    QueryMsgByIdSubCommand.queryById(defaultMQAdminExt, pullResult.getMsgFoundList().get(0)
                        .getMsgId());
View Full Code Here

Examples of com.alibaba.rocketmq.client.consumer.DefaultMQPullConsumer.pull()

            mq.setQueueId(Integer.parseInt(queueId));

            defaultMQPullConsumer.start();
            defaultMQAdminExt.start();

            PullResult pullResult = defaultMQPullConsumer.pull(mq, "*", Long.parseLong(offset), 1);
            if (pullResult != null) {
                switch (pullResult.getPullStatus()) {
                case FOUND:
                    QueryMsgByIdSubCommand.queryById(defaultMQAdminExt, pullResult.getMsgFoundList().get(0)
                        .getMsgId());
View Full Code Here

Examples of com.alibaba.rocketmq.client.consumer.MQPullConsumer.pull()

                    // 获取从哪里拉取
                    long offset = consumer.fetchConsumeOffset(mq, false);
                    if (offset < 0)
                        offset = 0;

                    PullResult pullResult = consumer.pull(mq, "*", offset, 32);
                    System.out.println(offset + "\t" + mq + "\t" + pullResult);
                    switch (pullResult.getPullStatus()) {
                    case FOUND:
                        break;
                    case NO_MATCHED_MSG:
View Full Code Here

Examples of com.android.ddmlib.SyncService.pull()

   * @throws SyncException
   */
  public static void pullFile(IDevice device, FileEntry[] remoteFrom, String localTo)
      throws TimeoutException, AdbCommandRejectedException, IOException{
    SyncService server = device.getSyncService();
    server.pull(remoteFrom, localTo, new SyncProgressMonitorAdapter(){
      @Override
      public void stop() {
//        UIHelper.showMessageDialog(parent, message, title, messageType);

      }
View Full Code Here

Examples of com.googlecode.mjorm.query.DaoModifier.pull()

          modifier.pop(field);
          break;
        case MqlParser.PULL:
          field = child(modiferTree, 0).getText();
          value = readVariableLiteral(child(modiferTree, 1), ctx);
          modifier.pull(field, value);
          break;
        case MqlParser.PULL_ALL:
          field = child(modiferTree, 0).getText();
          value = readVariableLiteral(child(modiferTree, 1), ctx);
          assertType(value, modiferTree, Object[].class);
View Full Code Here

Examples of com.jcabi.github.PullComments.pull()

     * @throws Exception If something goes wrong.
     */
    @Test
    public void iteratesRepoPullComments() throws Exception {
        final PullComments comments = comments();
        comments.pull()
            .repo()
            .pulls()
            .create("new", "", "")
            .comments()
            .post("new pull comment", "new commit", "/p", 1);
View Full Code Here

Examples of com.jcabi.github.PullComments.pull()

            .comments()
            .post("new pull comment", "new commit", "/p", 1);
        comments.post("test 1", "tesst 1", "/test1", 1);
        MatcherAssert.assertThat(
            comments.iterate(
                comments.pull().number(),
                Collections.<String, String>emptyMap()
            ),
            Matchers.<PullComment>iterableWithSize(1)
        );
        MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.github.PullComments.pull()

        final PullComments comments = comments();
        comments.post("comment 1", "commit 1", "/commit1", 1);
        comments.post("comment 2", "commit 2", "/commit2", 2);
        MatcherAssert.assertThat(
            comments.iterate(
                comments.pull().number(),
                Collections.<String, String>emptyMap()
            ),
            Matchers.<PullComment>iterableWithSize(2)
        );
    }
View Full Code Here

Examples of com.peterhi.obsolete.Data.pull()

      assertEquals(50, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(400, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      assertEquals(0, data.pull());
      data.read();
      assertEquals(7, data.pull());
      assertEquals(0, data.pull());
    } finally {
    }
View Full Code Here

Examples of com.trsst.client.Client.pull()

                    signatureElement.getAttributeValue("id"));
            assertEquals("Entry predecessor signature matches", signatureValue,
                    signatureElement.getText());

            // pull both entries
            feed = client.pull(feedId);
            assertEquals("Feed contains two entries", 2, feed.getEntries()
                    .size());
            entry = feed.getEntries().get(0);

            // mark both entries as deleted
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.