public interface Packet
Modifier and Type | Method and Description |
---|---|
void |
decode(HornetQBuffer buffer)
decodes the buffer into this packet
|
HornetQBuffer |
encode(RemotingConnection connection)
Encodes the packet and returns a
HornetQBuffer containing the data |
long |
getChannelID()
returns the channel id of the channel that should handle this pcaket
|
int |
getPacketSize()
returns the size needed to encode this packet.
|
byte |
getType()
returns the type of the packet.
|
boolean |
isAsyncExec() |
boolean |
isRequiresConfirmations()
returns true if a confirmation should be sent on receipt of this packet.
|
boolean |
isResponse()
returns true if this packet is being sent in response to a previously received packet
|
void |
setChannelID(long channelID)
This sets the channel id that should be used once the packet has been successfully decoded it is sent to the correct channel.
|
void setChannelID(long channelID)
channelID
- the id of the channel to handle the packetlong getChannelID()
boolean isResponse()
byte getType()
HornetQBuffer encode(RemotingConnection connection)
HornetQBuffer
containing the dataconnection
- the connectionvoid decode(HornetQBuffer buffer)
buffer
- the buffer to decode fromint getPacketSize()
boolean isRequiresConfirmations()
boolean isAsyncExec()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.