예제 #1
0
  /**
   * We add content to the store here
   *
   * @param contentChunk
   * @return
   * @throws AMQException
   */
  public int addContentBodyFrame(final ContentChunk contentChunk) throws AMQException {
    _storedMessageHandle.addContent((int) _bodyLengthReceived, contentChunk.getData().buf());
    _bodyLengthReceived += contentChunk.getSize();
    _contentChunks.add(contentChunk);

    return _receivedChunkCount++;
  }