Class WeaviateResponseConsumer<T>

java.lang.Object
org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer<Result<T>,byte[]>
io.weaviate.client.base.http.async.WeaviateResponseConsumer<T>
All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer, org.apache.hc.core5.http.nio.AsyncResponseConsumer<Result<T>>, org.apache.hc.core5.http.nio.ResourceHolder

public class WeaviateResponseConsumer<T> extends org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer<Result<T>,byte[]>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Result<T>
    buildResult(org.apache.hc.core5.http.HttpResponse response, byte[] entity, org.apache.hc.core5.http.ContentType contentType)
     
    void
    informationResponse(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context)
     

    Methods inherited from class org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer

    consume, consumeResponse, failed, releaseResources, streamEnd, updateCapacity

    Methods inherited from class java.lang.Object

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

    • WeaviateResponseConsumer

      public WeaviateResponseConsumer(Class<T> classOfT, ResponseParser<T> parser)
  • Method Details

    • buildResult

      protected Result<T> buildResult(org.apache.hc.core5.http.HttpResponse response, byte[] entity, org.apache.hc.core5.http.ContentType contentType)
      Specified by:
      buildResult in class org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer<Result<T>,byte[]>
    • informationResponse

      public void informationResponse(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException