public class FadvisedFileRegion
extends org.jboss.netty.channel.DefaultFileRegion
Constructor and Description |
---|
FadvisedFileRegion(RandomAccessFile file,
long position,
long count,
boolean manageOsCache,
int readaheadLength,
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, ReadaheadPool readaheadPool, String identifier) throws IOException
IOException
public long transferTo(WritableByteChannel target, long position) throws IOException
transferTo
in interface org.jboss.netty.channel.FileRegion
transferTo
in class org.jboss.netty.channel.DefaultFileRegion
IOException
public void releaseExternalResources()
releaseExternalResources
in interface org.jboss.netty.util.ExternalResourceReleasable
releaseExternalResources
in class org.jboss.netty.channel.DefaultFileRegion
Copyright © 2013 Apache Software Foundation. All rights reserved.