public class FadvisedFileRegion
extends io.netty.channel.DefaultFileRegion
Constructor and Description |
---|
FadvisedFileRegion(RandomAccessFile file,
long position,
long count,
boolean manageOsCache,
int readaheadLength,
org.apache.hadoop.io.ReadaheadPool readaheadPool,
String identifier,
int shuffleBufferSize,
boolean shuffleTransferToAllowed) |
Modifier and Type | Method and 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(WritableByteChannel target,
long position) |
count, isOpen, open, position, retain, retain, touch, touch, transfered, transferred
refCnt, release, release, setRefCnt
public FadvisedFileRegion(RandomAccessFile file, long position, long count, boolean manageOsCache, int readaheadLength, org.apache.hadoop.io.ReadaheadPool readaheadPool, String identifier, int shuffleBufferSize, boolean shuffleTransferToAllowed) throws IOException
IOException
public long transferTo(WritableByteChannel target, long position) throws IOException
transferTo
in interface io.netty.channel.FileRegion
transferTo
in class io.netty.channel.DefaultFileRegion
IOException
protected void deallocate()
deallocate
in class io.netty.channel.DefaultFileRegion
public void transferSuccessful()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.