public class ReadAds extends IndexAds
AdsCommand.Cmd| Modifier and Type | Field and Description |
|---|---|
private long |
length |
COMMANDREQUEST, RESERVED| Constructor and Description |
|---|
ReadAds(int groupidx,
long offidx,
long len) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPayloadLength()
Returns the length of the payload for the command to send.
|
AdsPayload |
parse(ByteBuffer in,
AdsHeader h)
The generic read command returns a result error code, followed by
the length of the returned data plus the returned data.
|
AdsPayload |
preparePayload(AdsSocketChannel io,
AdsHeader h)
Prepares the payload.
|
getGroup, getIndexLength, getOffset, parseGroup, parseOffsetgetFlag, prepareHeaderpublic ReadAds(int groupidx,
long offidx,
long len)
commandid - public long getPayloadLength()
AdsCommandgetPayloadLength in class AdsCommandpublic AdsPayload preparePayload(AdsSocketChannel io, AdsHeader h)
AdsCommandpreparePayload in class AdsCommandpublic AdsPayload parse(ByteBuffer in, AdsHeader h)
parse in class AdsCommand