示例#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++;
  }
示例#2
0
 public void setStoredMessage(StoredMessage<MessageMetaData> storedMessageHandle) {
   _storedMessageHandle = storedMessageHandle;
   _storedMessageHandle.setExchange(this.getExchange().toString());
 }
示例#3
0
 public Long getMessageNumber() {
   return _storedMessageHandle.getMessageNumber();
 }