public class ReadResponse extends Object implements XrootdResponse<ReadRequest>, io.netty.util.ReferenceCounted
| Constructor and Description |
|---|
ReadResponse(ReadRequest request,
io.netty.buffer.ByteBuf data,
boolean isIncomplete) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
getData() |
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.
|
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
ReadResponse |
retain() |
ReadResponse |
retain(int increment) |
String |
toString() |
io.netty.util.ReferenceCounted |
touch() |
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 ReadResponse(ReadRequest request, io.netty.buffer.ByteBuf data, boolean isIncomplete)
public 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>public io.netty.buffer.ByteBuf getData()
public int refCnt()
refCnt in interface io.netty.util.ReferenceCountedpublic ReadResponse retain()
retain in interface io.netty.util.ReferenceCountedpublic ReadResponse retain(int increment)
retain in interface io.netty.util.ReferenceCountedpublic boolean release()
release in interface io.netty.util.ReferenceCountedpublic boolean release(int decrement)
release in interface io.netty.util.ReferenceCountedpublic io.netty.util.ReferenceCounted touch()
touch in interface io.netty.util.ReferenceCountedpublic io.netty.util.ReferenceCounted touch(Object hint)
touch in interface io.netty.util.ReferenceCountedCopyright © 2011–2018 dCache.org. All rights reserved.