{
try
{
lockAppend.lock();
final ByteArrayEncoding byteEncoder = new ByteArrayEncoding(new byte[128 * 1024]);
JournalInternalRecord blastRecord = new JournalInternalRecord()
{
@Override
public int getEncodeSize()
{
return byteEncoder.getEncodeSize();
}
public void encode(final HornetQBuffer buffer)
{
byteEncoder.encode(buffer);
}
};
for (int i = 0; i < pages; i++)
{