Interface HttpResponseHandler.TrafficCop
- Enclosing interface:
- HttpResponseHandler<IntermediateType,
FinalType>
public static interface HttpResponseHandler.TrafficCop
-
Method Summary
Modifier and TypeMethodDescriptionlongresume(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 whereClientResponse.isContinueReading()was true.- Returns:
- time that backpressure was applied (channel was closed for reads)
-