public class DataPacket extends Packet
| Modifier and Type | Field and Description |
|---|---|
protected int |
bytesLeft |
static short |
CHAINED |
static short |
COMPLETE |
protected byte[] |
data |
static short |
EOP |
static int |
HEADERLEN |
protected boolean |
isDecoded |
protected boolean |
isRetrans |
static short |
MAX_CODE |
| Constructor and Description |
|---|
DataPacket() |
| Modifier and Type | Method and Description |
|---|---|
byte |
data(int index) |
void |
data(int index,
byte val) |
int |
dataIndex() |
int |
dataLen() |
org.nustaq.offheap.structs.FSTStruct |
dataPointer() |
void |
dataPointer(org.nustaq.offheap.structs.FSTStruct pointer) |
void |
dumpBytes() |
int |
getBytesLeft() |
int |
getDGramSize() |
static DataPacket |
getTemplate(int packetSize) |
boolean |
isDecoded()
internal flag, anyway transmitted FIXME: not required anymore (relict of FC 2.x) !
|
boolean |
isRetrans() |
void |
setBytesLeft(int bytesLeft) |
void |
setDecoded(boolean decoded) |
void |
setRetrans(boolean isRetrans) |
String |
toString() |
getReceiver, getSender, getSeqNo, getTopic, setReceiver, setSender, setSeqNo, setTopicaddOffset, asByteBufferTemporary, baseOn, baseOn, baseOn, baseOn, cast, cast, createCopy, detach, detachTo, equals, finishChangeTracking, getAbsoluteOffset, getBase, getByte, getBytes, getBytes, getByteSize, getChar, getClzId, getDouble, getElementInArraySize, getFac, getFieldValues, getFloat, getIndexInBase, getInt, getLong, getOffset, getPointedClass, getShort, hashCode, isChangeTracking, isIdenticTo, isNull, isOffHeap, isStructArrayPointer, next, next, onHeapHashcode, pointsToNull, previous, setAbsoluteOffset, setBase, setByte, setBytes, setBytes, setBytes, setInt, setLong, setShort, startChangeTracking, toOffHeappublic static final short COMPLETE
public static final short CHAINED
public static final short EOP
public static final short MAX_CODE
public static final int HEADERLEN
protected boolean isDecoded
protected boolean isRetrans
protected int bytesLeft
protected byte[] data
public static DataPacket getTemplate(int packetSize)
public void data(int index,
byte val)
public byte data(int index)
public int dataLen()
public int dataIndex()
public boolean isDecoded()
public void setDecoded(boolean decoded)
public void dataPointer(org.nustaq.offheap.structs.FSTStruct pointer)
public org.nustaq.offheap.structs.FSTStruct dataPointer()
public boolean isRetrans()
public void setRetrans(boolean isRetrans)
public int getBytesLeft()
public int getDGramSize()
public void setBytesLeft(int bytesLeft)
public void dumpBytes()
Copyright © 2015. All rights reserved.