/**
   * 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++;
  }
 public void setStoredMessage(StoredMessage<MessageMetaData> storedMessageHandle) {
   _storedMessageHandle = storedMessageHandle;
   _storedMessageHandle.setExchange(this.getExchange().toString());
 }
 public Long getMessageNumber() {
   return _storedMessageHandle.getMessageNumber();
 }