258259260261262263264265266267
public HornetQBuffer getBodyBuffer() { if (bodyBuffer == null) { bodyBuffer = new ResetLimitWrappedHornetQBuffer(BODY_OFFSET, buffer, this); } return bodyBuffer; }
278279280281282283284
HornetQBuffer newBuffer = buffer.copy(0, buffer.capacity()); newBuffer.setIndex(0, getEndOfBodyPosition()); return new ResetLimitWrappedHornetQBuffer(BODY_OFFSET, newBuffer, null); }
264265266267268269270271272273
257258259260261262263264265266
277278279280281282283
162163164165166167168169170171172
{ bodySize = Integer.MAX_VALUE; } createBody((int)bodySize); bodyBuffer = new ResetLimitWrappedHornetQBuffer(BODY_OFFSET, buffer, this); try { largeMessageController.saveBuffer(new HornetQOutputStream(bodyBuffer)); }
265266267268269270271272273274
180181182183184185186187188189
{ bodySize = Integer.MAX_VALUE; } createBody((int)bodySize); bodyBuffer = new ResetLimitWrappedHornetQBuffer(BODY_OFFSET, buffer, this); largeMessageController.saveBuffer(new HornetQOutputStream(bodyBuffer)); } }