Package org.apache.cassandra.net
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.-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from class io.netty.channel.DefaultFileRegion
count, isOpen, open, position, retain, retain, touch, touch, transfered, transferred, transferToMethods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, setRefCntMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
Method Details
-
deallocate
protected void deallocate()- Overrides:
deallocatein classio.netty.channel.DefaultFileRegion
-