Class ContentChunk

java.lang.Object
org.eclipse.jetty.reactive.client.ContentChunk

public class ContentChunk
extends java.lang.Object
A chunk of content, made of a ByteBuffer and a Callback.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.nio.ByteBuffer buffer  
    org.eclipse.jetty.util.Callback callback  
  • Constructor Summary

    Constructors 
    Constructor Description
    ContentChunk​(java.nio.ByteBuffer buffer)  
    ContentChunk​(java.nio.ByteBuffer buffer, org.eclipse.jetty.util.Callback callback)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • buffer

      public final java.nio.ByteBuffer buffer
    • callback

      public final org.eclipse.jetty.util.Callback callback
  • Constructor Details

    • ContentChunk

      public ContentChunk​(java.nio.ByteBuffer buffer)
    • ContentChunk

      public ContentChunk​(java.nio.ByteBuffer buffer, org.eclipse.jetty.util.Callback callback)
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object