public class FadvisedChunkedFile
extends io.netty.handler.stream.ChunkedFile
| Constructor and Description |
|---|
FadvisedChunkedFile(RandomAccessFile file,
long position,
long count,
int chunkSize,
boolean manageOsCache,
int readaheadLength,
org.apache.hadoop.io.ReadaheadPool readaheadPool,
String identifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
io.netty.buffer.ByteBuf |
readChunk(io.netty.buffer.ByteBufAllocator allocator) |
public FadvisedChunkedFile(RandomAccessFile file, long position, long count, int chunkSize, boolean manageOsCache, int readaheadLength, org.apache.hadoop.io.ReadaheadPool readaheadPool, String identifier) throws IOException
IOExceptionpublic io.netty.buffer.ByteBuf readChunk(io.netty.buffer.ByteBufAllocator allocator)
throws Exception
readChunk in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>readChunk in class io.netty.handler.stream.ChunkedFileExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.