Examples of RawDataBuffer


Examples of net.timewalker.ffmq3.utils.RawDataBuffer

    /**
     * Constructor
     */
    public NetworkOutputChannel( int initialBufferSize , OutputStream stream )
    {
      this.ioBuffer = new RawDataBuffer(initialBufferSize);
        this.socketOutputStream = stream;
    }
View Full Code Here

Examples of net.timewalker.ffmq3.utils.RawDataBuffer

     */
    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();
    }
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.