Class NotificationPacket
- java.lang.Object
-
- net.timewalker.ffmq4.transport.packet.AbstractPacket
-
- net.timewalker.ffmq4.transport.packet.NotificationPacket
-
public final class NotificationPacket extends AbstractPacket
NotificationPacket
-
-
Constructor Summary
Constructors Constructor Description NotificationPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerIDgetConsumerId()AbstractMessagegetMessage()IntegerIDgetSessionId()bytegetType()Get the type value for this packetbooleanisDonePrefetching()booleanisResponseExpected()protected voidserializeTo(RawDataBuffer out)Write the packet content to the given output streamvoidsetConsumerId(IntegerID consumerId)voidsetDonePrefetching(boolean donePrefetching)voidsetMessage(AbstractMessage message)voidsetSessionId(IntegerID sessionId)StringtoString()protected voidunserializeFrom(RawDataBuffer in)Read the packet content to the given input stream-
Methods inherited from class net.timewalker.ffmq4.transport.packet.AbstractPacket
getEndpointId, setEndpointId
-
-
-
-
Method Detail
-
getType
public byte getType()
Description copied from class:AbstractPacketGet the type value for this packet- Specified by:
getTypein classAbstractPacket
-
serializeTo
protected void serializeTo(RawDataBuffer out)
Description copied from class:AbstractPacketWrite the packet content to the given output stream- Overrides:
serializeToin classAbstractPacket
-
unserializeFrom
protected void unserializeFrom(RawDataBuffer in)
Description copied from class:AbstractPacketRead the packet content to the given input stream- Overrides:
unserializeFromin classAbstractPacket
-
getSessionId
public IntegerID getSessionId()
- Returns:
- the sessionId
-
setSessionId
public void setSessionId(IntegerID sessionId)
- Parameters:
sessionId- the sessionId to set
-
getConsumerId
public IntegerID getConsumerId()
- Returns:
- the consumerId
-
setConsumerId
public void setConsumerId(IntegerID consumerId)
- Parameters:
consumerId- the consumerId to set
-
getMessage
public AbstractMessage getMessage()
- Returns:
- the message
-
setMessage
public void setMessage(AbstractMessage message)
- Parameters:
message- the message to set
-
isDonePrefetching
public boolean isDonePrefetching()
- Returns:
- the donePrefetching
-
setDonePrefetching
public void setDonePrefetching(boolean donePrefetching)
- Parameters:
donePrefetching- the donePrefetching to set
-
isResponseExpected
public final boolean isResponseExpected()
- Specified by:
isResponseExpectedin classAbstractPacket
-
toString
public String toString()
- Overrides:
toStringin classAbstractPacket
-
-