Examples of ack()


Examples of com.alibaba.jstorm.client.spout.IAckValueSpout.ack()

      LOG.info("Acking message {}", msgId);
    }

    if (spout instanceof IAckValueSpout) {
      IAckValueSpout ackValueSpout = (IAckValueSpout) spout;
      ackValueSpout.ack(msgId, values);
    } else {
      spout.ack(msgId);
    }

    task_stats.spout_acked_tuple(stream, timeStamp);
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.TerminMonitor.ack()

        try {
            byte[] data = zookeeper.readData(path);
            return JsonUtils.unmarshalFromByte(data, TerminEventData.class);
        } catch (ZkNoNodeException e) {
            logger.error("pipeline[{}] processId[{}] is process", pipelineId, processId);
            terminMonitor.ack(processId); // modify for 2012-09-08, 发生主备切换时,await会进入死循环,针对NoNode后直接从内存队列中移除
            return await(pipelineId); // 再取下一个节点
        } catch (ZkException e) {
            throw new ArbitrateException("Termin_await", e);
        }
    }
View Full Code Here

Examples of com.alibaba.tt.queue.impl.MessageKey.ack()

    if (block == null) {
      return null;
    }
    // ack
    MessageKey key = block.getKey();
    key.ack();

    List<Object> list = new ArrayList<Object>(NEW_ENTRIES_COUNT);
    String buffer = new String(block.getBuffer());
    for (String mesgStr : buffer.split("[\n\r]", -1)) {
      list.add(mesgStr);
View Full Code Here

Examples of com.alibaba.tt.queue.impl.MessageKey.ack()

      return null;
    }
   
    // ack
    MessageKey key = block.getKey();
    key.ack();
   
    byte[] data=block.getBuffer();
   
    List<byte[]> messages = MessageParser.parseProtoBufsFromBytes(data);
    List<Object> list = new ArrayList<Object>(1);
View Full Code Here

Examples of com.alibaba.tt.queue.impl.MessageKey.ack()

          if (block == null){
              return null;
          }
          // ack
          MessageKey key = block.getKey();
          key.ack();
 
          List<String> list = new ArrayList<String>(NEW_ENTRIES_COUNT);
          String buffer = new String(block.getBuffer());
          for (String mesgStr: buffer.split("[\n\r]", -1)){
              list.add(mesgStr);
View Full Code Here

Examples of com.twitter.finagle.kestrel.ReadMessage.ack()

    while (true) {
      ReadMessage m = handle.messages().syncWait();
      System.out.println(m.bytes().toString(Charsets.Utf8()));
      System.out.println(ChannelBuffers.hexDump(m.bytes()));
      m.ack().sync();
    }
  }
}
View Full Code Here

Examples of org.apache.activemq.transport.stomp.StompConnection.ack()

   
    connection.begin("tx2");
   
    StompFrame message = connection.receive();
    System.out.println(message.getBody());
    connection.ack(message, "tx2");
   
    message = connection.receive();
    System.out.println(message.getBody());
    connection.ack(message, "tx2");
   
View Full Code Here

Examples of org.apache.avro.test.Simple.ack()

  public void testConnectionRefusedOneWay() throws IOException {
    Transceiver client = new HttpTransceiver(new URL("http://localhost:4444"));
    SpecificRequestor req = new SpecificRequestor(Simple.class, client);
    addRpcPlugins(req);
    Simple proxy = SpecificRequestor.getClient(Simple.class, (SpecificRequestor)req);
    proxy.ack();
  }

  @Test
  /** Construct and use a protocol whose "hello" method has an extra
      argument to check that schema is sent to parse request. */
 
View Full Code Here

Examples of org.fusesource.mqtt.client.Message.ack()

        connection.subscribe(topics);
        for (int i = 0; i < numberOfMessages; i++) {
            String payload = "Test Message: " + i;
            connection.publish("foo", payload.getBytes(), QoS.AT_LEAST_ONCE, false);
            Message message = connection.receive();
            message.ack();
            assertEquals(payload, new String(message.getPayload()));
        }
        connection.disconnect();
    }
View Full Code Here

Examples of org.fusesource.mqtt.client.Message.ack()

        subConnection.subscribe(topics);
        for (int i = 0; i < numberOfMessages; i++) {
            String payload = "Test Message: " + i;
            pubConnection.publish("foo", payload.getBytes(), QoS.EXACTLY_ONCE, false);
            Message message = subConnection.receive();
            message.ack();
            assertEquals(payload, new String(message.getPayload()));
        }
        subConnection.disconnect();
        pubConnection.disconnect();
    }
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.