public class AsyncResponse<T extends XrootdRequest> extends io.netty.util.AbstractReferenceCounted implements XrootdResponse<T>
| Constructor and Description |
|---|
AsyncResponse(XrootdResponse<T> response) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deallocate() |
int |
getDataLength()
Returns the length of the response body.
|
T |
getRequest()
Returns the request this is a response to.
|
XrootdResponse<T> |
getResponse() |
int |
getStatus()
The xrootd response status code.
|
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 AsyncResponse(XrootdResponse<T> response)
public int getStatus()
XrootdResponsegetStatus in interface XrootdResponse<T extends XrootdRequest>public XrootdResponse<T> getResponse()
public T getRequest()
XrootdResponsegetRequest in interface XrootdResponse<T extends XrootdRequest>public int getDataLength()
XrootdResponsegetDataLength in interface XrootdResponse<T extends XrootdRequest>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<T extends XrootdRequest>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.