Package io.micronaut.http.server.netty
Class MicronautHttpData.Chunk
java.lang.Object
io.netty.util.AbstractReferenceCounted
io.micronaut.http.server.netty.MicronautHttpData.Chunk
- All Implemented Interfaces:
io.netty.util.ReferenceCounted
- Enclosing class:
- MicronautHttpData<D extends io.netty.handler.codec.http.multipart.HttpData>
public final class MicronautHttpData.Chunk
extends io.netty.util.AbstractReferenceCounted
Chunk of bytes from this data object. When this is exposed (returned by
MicronautHttpData.pollChunk()
), the data is "fixed", there won't be new data added.-
Method Summary
Methods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, retain, retain, setRefCnt
-
Method Details
-
claim
public io.netty.buffer.ByteBuf claim()Get the contents of this chunk as aByteBuf
. If there are concurrent operations on this data (e.g. it is being moved to disk), this method may block. Must only be called once.- Returns:
- The contents of this chunk
-
deallocate
protected void deallocate()- Specified by:
deallocate
in classio.netty.util.AbstractReferenceCounted
-
touch
public io.netty.util.ReferenceCounted touch()- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Overrides:
touch
in classio.netty.util.AbstractReferenceCounted
-
touch
-