public class ReadWriteAds extends IndexAds
AdsCommand.Cmd| Modifier and Type | Field and Description |
|---|---|
private long |
read |
private ByteBuffer |
submit |
COMMANDREQUEST, RESERVED| Constructor and Description |
|---|
ReadWriteAds(int groupidx,
long offidx,
long readlen,
ByteBuffer write) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPayloadLength()
Returns the length of the payload for the command to send.
|
AdsPayload |
parse(ByteBuffer full,
AdsHeader h)
Parses the reply payload.
|
AdsPayload |
preparePayload(AdsSocketChannel io,
AdsHeader h)
Prepares the payload.
|
getGroup, getIndexLength, getOffset, parseGroup, parseOffsetgetFlag, prepareHeaderprivate final long read
private final ByteBuffer submit
public ReadWriteAds(int groupidx,
long offidx,
long readlen,
ByteBuffer write)
public long getPayloadLength()
AdsCommandgetPayloadLength in class AdsCommandpublic AdsPayload preparePayload(AdsSocketChannel io, AdsHeader h)
AdsCommandpreparePayload in class AdsCommandpublic AdsPayload parse(ByteBuffer full, AdsHeader h)
AdsCommandparse in class AdsCommand