protected int retrieveMessagePriority(int handle) throws JMSException
{
// Only read a few bytes of the message to read the priority field
byte[] msgHeader = ((AbstractBlockBasedDataStore)dataStore).retrieveHeader(handle, AbstractMessage.PRIORITY_OFFSET+1);
RawDataBuffer buf = new RawDataBuffer(msgHeader);
if (buf.skipBytes(AbstractMessage.PRIORITY_OFFSET) != AbstractMessage.PRIORITY_OFFSET)
throw new DataStoreException("Cannot skip to priority field offset");
return buf.readByte();
}
private byte[] serialize( AbstractMessage message )