Class AbstractPacket
- java.lang.Object
-
- net.timewalker.ffmq4.transport.packet.AbstractPacket
-
- Direct Known Subclasses:
AbstractQueryPacket,AbstractResponsePacket,NotificationPacket
public abstract class AbstractPacket extends Object
AbstractPacket
-
-
Constructor Summary
Constructors Constructor Description AbstractPacket()Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetEndpointId()abstract bytegetType()Get the type value for this packetabstract booleanisResponseExpected()protected voidserializeTo(RawDataBuffer out)Write the packet content to the given output streamvoidsetEndpointId(int endpointId)StringtoString()protected voidunserializeFrom(RawDataBuffer in)Read the packet content to the given input stream
-
-
-
Method Detail
-
setEndpointId
public final void setEndpointId(int endpointId)
-
getEndpointId
public final int getEndpointId()
-
getType
public abstract byte getType()
Get the type value for this packet
-
serializeTo
protected void serializeTo(RawDataBuffer out)
Write the packet content to the given output stream
-
unserializeFrom
protected void unserializeFrom(RawDataBuffer in)
Read the packet content to the given input stream
-
isResponseExpected
public abstract boolean isResponseExpected()
-
-