Package com.alibaba.tt.queue.impl

Examples of com.alibaba.tt.queue.impl.MessageKey


    TTLogBlock block = this.readBlock();
    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


    if (block == null) {
      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

          }
          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

TOP

Related Classes of com.alibaba.tt.queue.impl.MessageKey

Copyright © 2018 www.massapicom. 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.