io.netty.channel.FileRegion, io.netty.util.ReferenceCountedpublic class FadvisedFileRegion
extends io.netty.channel.DefaultFileRegion
| Constructor | Description |
|---|---|
FadvisedFileRegion(java.io.RandomAccessFile file,
long position,
long count,
boolean manageOsCache,
int readaheadLength,
org.apache.hadoop.io.ReadaheadPool readaheadPool,
java.lang.String identifier,
int shuffleBufferSize,
boolean shuffleTransferToAllowed) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
deallocate() |
|
void |
transferSuccessful() |
Call when the transfer completes successfully so we can advise the OS that
we don't need the region to be cached anymore.
|
long |
transferTo(java.nio.channels.WritableByteChannel target,
long position) |
count, isOpen, open, position, retain, retain, touch, touch, transfered, transferredrefCnt, release, release, setRefCntpublic FadvisedFileRegion(java.io.RandomAccessFile file,
long position,
long count,
boolean manageOsCache,
int readaheadLength,
org.apache.hadoop.io.ReadaheadPool readaheadPool,
java.lang.String identifier,
int shuffleBufferSize,
boolean shuffleTransferToAllowed)
throws java.io.IOException
java.io.IOExceptionpublic long transferTo(java.nio.channels.WritableByteChannel target,
long position)
throws java.io.IOException
transferTo in interface io.netty.channel.FileRegiontransferTo in class io.netty.channel.DefaultFileRegionjava.io.IOExceptionprotected void deallocate()
deallocate in class io.netty.channel.DefaultFileRegionpublic void transferSuccessful()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.