public class ReadVResponse extends io.netty.util.AbstractReferenceCounted implements XrootdResponse<ReadVRequest>
| Modifier and Type | Field and Description |
|---|---|
static int |
READ_LIST_HEADER_SIZE |
| Constructor and Description |
|---|
ReadVResponse(ReadVRequest request,
GenericReadRequestMessage.EmbeddedReadRequest[] requests,
io.netty.buffer.ByteBuf[] data,
int index,
int length,
boolean isIncomplete) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deallocate() |
int |
getDataLength()
Returns the length of the response body.
|
int |
getIndex()
Returns the starting index into the request read segments that this response
addresses.
|
int |
getLength()
Returns the number of segments contained in this response.
|
ReadVRequest |
getRequest()
Returns the request this is a response to.
|
List<Integer> |
getSegmentLengths() |
List<io.netty.buffer.ByteBuf> |
getSegments()
Returns the data segments of the response.
|
int |
getStatus()
The xrootd response status code.
|
String |
toString() |
io.netty.util.ReferenceCounted |
touch(Object hint) |
void |
writeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
Writes the encoded message to the given channel context.
|
public static final int READ_LIST_HEADER_SIZE
public ReadVResponse(ReadVRequest request, GenericReadRequestMessage.EmbeddedReadRequest[] requests, io.netty.buffer.ByteBuf[] data, int index, int length, boolean isIncomplete)
public ReadVRequest getRequest()
XrootdResponsegetRequest in interface XrootdResponse<ReadVRequest>public int getStatus()
XrootdResponsegetStatus in interface XrootdResponse<ReadVRequest>public List<io.netty.buffer.ByteBuf> getSegments()
public int getIndex()
public int getLength()
public int getDataLength()
XrootdResponsegetDataLength in interface XrootdResponse<ReadVRequest>public void writeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
XrootdResponse1 and
deallocates this object if the reference count reaches 0.writeTo in interface XrootdResponse<ReadVRequest>public io.netty.util.ReferenceCounted touch(Object hint)
touch in interface io.netty.util.ReferenceCountedprotected void deallocate()
deallocate in class io.netty.util.AbstractReferenceCountedCopyright © 2011–2018 dCache.org. All rights reserved.