public class FadvisedFileRegion
extends org.jboss.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) |
| Modifier and Type | Method and Description |
|---|---|
void |
releaseExternalResources() |
long |
transferTo(WritableByteChannel target,
long position) |
public FadvisedFileRegion(RandomAccessFile file, long position, long count, boolean manageOsCache, int readaheadLength, org.apache.hadoop.io.ReadaheadPool readaheadPool, String identifier) throws IOException
IOExceptionpublic long transferTo(WritableByteChannel target, long position) throws IOException
transferTo in interface org.jboss.netty.channel.FileRegiontransferTo in class org.jboss.netty.channel.DefaultFileRegionIOExceptionpublic void releaseExternalResources()
releaseExternalResources in interface org.jboss.netty.util.ExternalResourceReleasablereleaseExternalResources in class org.jboss.netty.channel.DefaultFileRegionCopyright © 2013 Apache Software Foundation. All Rights Reserved.