Package net.timewalker.ffmq3.utils

Examples of net.timewalker.ffmq3.utils.RawDataBuffer.skipBytes()


    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 )
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.