public class DataItemFileRegion
extends io.netty.util.AbstractReferenceCounted
implements io.netty.channel.FileRegion
| Modifier and Type | Field and Description |
|---|---|
protected long |
baseItemSize |
protected com.emc.mongoose.api.model.item.DataItem |
dataItem |
protected long |
doneByteCount |
| Constructor and Description |
|---|
DataItemFileRegion(com.emc.mongoose.api.model.item.DataItem dataItem) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
protected void |
deallocate() |
long |
position() |
io.netty.channel.FileRegion |
retain() |
io.netty.channel.FileRegion |
retain(int increment) |
io.netty.channel.FileRegion |
touch() |
io.netty.channel.FileRegion |
touch(java.lang.Object hint) |
long |
transfered()
Deprecated.
|
long |
transferred() |
long |
transferTo(java.nio.channels.WritableByteChannel target,
long position) |
refCnt, release, release, setRefCntprotected final com.emc.mongoose.api.model.item.DataItem dataItem
protected final long baseItemSize
protected long doneByteCount
public DataItemFileRegion(com.emc.mongoose.api.model.item.DataItem dataItem)
throws java.io.IOException
java.io.IOExceptionpublic long position()
position in interface io.netty.channel.FileRegion@Deprecated public long transfered()
transfered in interface io.netty.channel.FileRegionpublic long transferred()
transferred in interface io.netty.channel.FileRegionpublic long count()
count in interface io.netty.channel.FileRegionpublic long transferTo(java.nio.channels.WritableByteChannel target,
long position)
throws java.io.IOException
transferTo in interface io.netty.channel.FileRegionjava.io.IOExceptionpublic io.netty.channel.FileRegion retain()
retain in interface io.netty.channel.FileRegionretain in interface io.netty.util.ReferenceCountedretain in class io.netty.util.AbstractReferenceCountedpublic io.netty.channel.FileRegion retain(int increment)
retain in interface io.netty.channel.FileRegionretain in interface io.netty.util.ReferenceCountedretain in class io.netty.util.AbstractReferenceCountedpublic io.netty.channel.FileRegion touch()
touch in interface io.netty.channel.FileRegiontouch in interface io.netty.util.ReferenceCountedtouch in class io.netty.util.AbstractReferenceCountedpublic io.netty.channel.FileRegion touch(java.lang.Object hint)
touch in interface io.netty.channel.FileRegiontouch in interface io.netty.util.ReferenceCountedprotected void deallocate()
deallocate in class io.netty.util.AbstractReferenceCounted