public class BusinessRequestPacket extends AbstractLocalPacket
1 string and on integer and one byte:
- sheader = full text with class at first place, following (space separated)
by extra arguments - smiddle =
integer - send = byte
EMPTY_ARRAY, end, global, header, LOCAL_HEADER_SIZE, middle
Constructor and Description |
---|
BusinessRequestPacket(String header,
int delay) |
BusinessRequestPacket(String header,
int delay,
byte way) |
Modifier and Type | Method and Description |
---|---|
void |
createAllBuffers(LocalChannelReference lcr,
int networkHeader)
Prepare the 3 buffers Header, Middle and End
|
static BusinessRequestPacket |
createFromBuffer(int headerLength,
int middleLength,
int endLength,
io.netty.buffer.ByteBuf buf) |
int |
getDelay() |
String |
getSheader() |
byte |
getType() |
boolean |
hasGlobalBuffer() |
void |
invalidate()
Invalidate the request
|
boolean |
isToValidate() |
void |
setDelay(int delay) |
String |
toString() |
void |
validate()
Validate the request
|
clear, createEnd, createHeader, createMiddle, getLocalPacket, getLocalPacketForNetworkPacket, retain
public BusinessRequestPacket(String header, int delay, byte way)
public BusinessRequestPacket(String header, int delay)
public static BusinessRequestPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
OpenR66ProtocolPacketException
public final boolean hasGlobalBuffer()
hasGlobalBuffer
in class AbstractLocalPacket
public final void createAllBuffers(LocalChannelReference lcr, int networkHeader)
AbstractLocalPacket
createAllBuffers
in class AbstractLocalPacket
public final byte getType()
getType
in class AbstractLocalPacket
public final String toString()
toString
in class AbstractLocalPacket
public final boolean isToValidate()
public final void validate()
public final void invalidate()
public final String getSheader()
public final int getDelay()
public final void setDelay(int delay)
delay
- the delay to setCopyright © 2009–2022 Waarp. All rights reserved.