Class SharedDefaultFileRegion

java.lang.Object
io.netty.util.AbstractReferenceCounted
io.netty.channel.DefaultFileRegion
org.apache.cassandra.net.SharedDefaultFileRegion
All Implemented Interfaces:
io.netty.channel.FileRegion, io.netty.util.ReferenceCounted

public class SharedDefaultFileRegion extends io.netty.channel.DefaultFileRegion
Netty's DefaultFileRegion closes the underlying FileChannel as soon as the refCnt() for the region drops to zero, this is an implementation of the DefaultFileRegion that doesn't close the FileChannel. See AsyncChannelOutputPlus for its usage.