public class Packet extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Packet.Meta |
Constructor and Description |
---|
Packet() |
Modifier and Type | Method and Description |
---|---|
Packet |
clone() |
int |
getByteCount() |
Long |
getId() |
Packet.Meta |
getMeta() |
PacketListener |
getPacketListener() |
ByteBuffer |
getPreEncodedByteBuffer() |
Long |
getRespId() |
Integer |
getSynSeq() |
boolean |
isBlockSend() |
boolean |
isFromCluster() |
boolean |
isSslEncrypted() |
String |
logstr() |
void |
setBlockSend(boolean isBlockSend) |
void |
setByteCount(int byteCount) |
void |
setFromCluster(boolean isFromCluster) |
void |
setId(Long id) |
void |
setMeta(Packet.Meta meta) |
void |
setPacketListener(PacketListener packetListener) |
void |
setPreEncodedByteBuffer(ByteBuffer preEncodedByteBuffer) |
void |
setRespId(Long respId) |
void |
setSslEncrypted(boolean isSslEncrypted) |
void |
setSynSeq(Integer synSeq) |
public int getByteCount()
public Long getId()
public PacketListener getPacketListener()
public ByteBuffer getPreEncodedByteBuffer()
public Long getRespId()
public Integer getSynSeq()
public boolean isBlockSend()
public String logstr()
public void setBlockSend(boolean isBlockSend)
isBlockSend
- the isBlockSend to setpublic void setByteCount(int byteCount)
byteCount
- the byteCount to setpublic void setId(Long id)
id
- the id to setpublic void setPacketListener(PacketListener packetListener)
packetListener
- the packetListener to setpublic void setPreEncodedByteBuffer(ByteBuffer preEncodedByteBuffer)
preEncodedByteBuffer
- the preEncodedByteBuffer to setpublic void setRespId(Long respId)
respId
- the respId to setpublic void setSynSeq(Integer synSeq)
synSeq
- the synSeq to setpublic boolean isFromCluster()
public void setFromCluster(boolean isFromCluster)
public boolean isSslEncrypted()
public void setSslEncrypted(boolean isSslEncrypted)
public Packet.Meta getMeta()
public void setMeta(Packet.Meta meta)
Copyright © 2021. All rights reserved.