public class ZeroCopyReadResponse extends Object implements XrootdResponse<ReadRequest>
| Constructor and Description |
|---|
ZeroCopyReadResponse(ReadRequest request,
FileChannel file) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDataLength()
Returns the length of the response body.
|
ReadRequest |
getRequest()
Returns the request this is a response to.
|
int |
getStatus()
The xrootd response status code.
|
String |
toString() |
void |
writeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
Writes the encoded message to the given channel context.
|
public ZeroCopyReadResponse(ReadRequest request, FileChannel file) throws IOException
IOExceptionpublic ReadRequest getRequest()
XrootdResponsegetRequest in interface XrootdResponse<ReadRequest>public int getStatus()
XrootdResponsegetStatus in interface XrootdResponse<ReadRequest>public int getDataLength()
XrootdResponsegetDataLength in interface XrootdResponse<ReadRequest>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<ReadRequest>Copyright © 2011–2018 dCache.org. All rights reserved.