Interface HttpResponseHandler.TrafficCop

Enclosing interface:
HttpResponseHandler<IntermediateType,FinalType>

public static interface HttpResponseHandler.TrafficCop
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    resume(long chunkNum)
    Call this to resume reading after you have suspended it.
  • Method Details

    • resume

      long resume(long chunkNum)
      Call this to resume reading after you have suspended it. This method will do nothing if reading is not currently suspended.
      Parameters:
      chunkNum - chunk number corresponding to the handleChunk() or handleResponse() call from which you returned a ClientResponse where ClientResponse.isContinueReading() was true.
      Returns:
      time that backpressure was applied (channel was closed for reads)