}
}
public void objectToEntry(Object object, TupleOutput tupleOutput)
{
MessageMetaData message = (MessageMetaData) object;
try
{
writeMessagePublishInfo(message.getMessagePublishInfo(), tupleOutput);
}
catch (AMQException e)
{
// can't do anything else since the BDB interface precludes throwing any exceptions
// in practice we should never get an exception
throw new RuntimeException("Error converting object to entry: " + e, e);
}
writeContentHeader(message.getContentHeaderBody(), tupleOutput);
tupleOutput.writeInt(message.getContentChunkCount());
}