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

    Modifier and Type
    Method
    Description
    io.netty.buffer.ByteBuf
    Get the contents of this chunk as a ByteBuf.
    protected void
     
    io.netty.util.ReferenceCounted
     
    io.netty.util.ReferenceCounted
    touch(Object hint)
     

    Methods inherited from class io.netty.util.AbstractReferenceCounted

    refCnt, release, release, retain, retain, setRefCnt

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • claim

      public io.netty.buffer.ByteBuf claim()
      Get the contents of this chunk as a ByteBuf. 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 class io.netty.util.AbstractReferenceCounted
    • touch

      public io.netty.util.ReferenceCounted touch()
      Specified by:
      touch in interface io.netty.util.ReferenceCounted
      Overrides:
      touch in class io.netty.util.AbstractReferenceCounted
    • touch

      public io.netty.util.ReferenceCounted touch(Object hint)