public abstract class AbstractLocalPacket extends Object
Modifier and Type | Field and Description |
---|---|
protected io.netty.buffer.ByteBuf |
end |
protected io.netty.buffer.ByteBuf |
header |
protected io.netty.buffer.ByteBuf |
middle |
Modifier | Constructor and Description |
---|---|
protected |
AbstractLocalPacket() |
protected |
AbstractLocalPacket(io.netty.buffer.ByteBuf header,
io.netty.buffer.ByteBuf middle,
io.netty.buffer.ByteBuf end) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
abstract void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
abstract void |
createHeader(LocalChannelReference lcr)
Prepare the Header buffer
|
abstract void |
createMiddle(LocalChannelReference lcr)
Prepare the Middle buffer
|
io.netty.buffer.ByteBuf |
getLocalPacket(LocalChannelReference lcr) |
abstract byte |
getType() |
void |
retain() |
abstract String |
toString() |
protected io.netty.buffer.ByteBuf header
protected io.netty.buffer.ByteBuf middle
protected io.netty.buffer.ByteBuf end
protected AbstractLocalPacket(io.netty.buffer.ByteBuf header, io.netty.buffer.ByteBuf middle, io.netty.buffer.ByteBuf end)
protected AbstractLocalPacket()
public abstract void createHeader(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
OpenR66ProtocolPacketException
public abstract void createMiddle(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
OpenR66ProtocolPacketException
public abstract void createEnd(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
OpenR66ProtocolPacketException
public abstract byte getType()
public io.netty.buffer.ByteBuf getLocalPacket(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
lcr
- the LocalChannelReference in useOpenR66ProtocolPacketException
public void clear()
public void retain()
Copyright © 2009–2020 Waarp. All rights reserved.