public class InboundReadResponse extends AbstractXrootdInboundResponse implements ByteBuffersProvider
Response from third-party source server.
The implementation of the ByteBuffersProvider interface
assimilates this response with an incoming client write request.
The third-party client in effect acts as a pipe between the remote read of the file and the local write. Merging that functionality into a single object allows us to bypass an extra buffer copy.
stat, streamId| Constructor and Description |
|---|
InboundReadResponse(io.netty.buffer.ByteBuf buffer) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDlen() |
int |
getRequestId()
The xrootd request type this is a response to
|
long |
getWriteOffset() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int i) |
io.netty.util.ReferenceCounted |
retain() |
io.netty.util.ReferenceCounted |
retain(int i) |
void |
setWriteOffset(long writeOffset) |
ByteBuffer[] |
toByteBuffers() |
io.netty.util.ReferenceCounted |
touch() |
io.netty.util.ReferenceCounted |
touch(Object o) |
getStatus, getStreamIdpublic int getDlen()
public int getRequestId()
XrootdInboundResponsegetRequestId in interface XrootdInboundResponsepublic long getWriteOffset()
getWriteOffset in interface ByteBuffersProviderpublic void setWriteOffset(long writeOffset)
public ByteBuffer[] toByteBuffers()
toByteBuffers in interface ByteBuffersProviderpublic int refCnt()
refCnt in interface io.netty.util.ReferenceCountedpublic io.netty.util.ReferenceCounted retain()
retain in interface io.netty.util.ReferenceCountedpublic io.netty.util.ReferenceCounted retain(int i)
retain in interface io.netty.util.ReferenceCountedpublic io.netty.util.ReferenceCounted touch()
touch in interface io.netty.util.ReferenceCountedpublic io.netty.util.ReferenceCounted touch(Object o)
touch in interface io.netty.util.ReferenceCountedpublic boolean release()
release in interface io.netty.util.ReferenceCountedpublic boolean release(int i)
release in interface io.netty.util.ReferenceCountedCopyright © 2011–2018 dCache.org. All rights reserved.