org.drizzle.jdbc.internal.common.packet
Class RawPacket

java.lang.Object
  extended by org.drizzle.jdbc.internal.common.packet.RawPacket

public final class RawPacket
extends java.lang.Object

Class to represent a raw packet as transferred over the wire. First we got 3 bytes specifying the actual length, then one byte packet sequence number and then n bytes with user data.


Method Summary
 java.nio.ByteBuffer getByteBuffer()
          Get the byte buffer backing this packet
 int getPacketSeq()
          Get the package sequence number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getByteBuffer

public java.nio.ByteBuffer getByteBuffer()
Get the byte buffer backing this packet

Returns:
a read only byte buffer

getPacketSeq

public int getPacketSeq()
Get the package sequence number

Returns:
the sequence number of the package


Copyright © 2012. All Rights Reserved.