public class BudgetBasedDownloader
extends java.lang.Object
implements org.asynchttpclient.AsyncHandler<java.util.Optional<byte[]>>
Constructor and Description |
---|
BudgetBasedDownloader(long budget) |
Modifier and Type | Method and Description |
---|---|
org.asynchttpclient.AsyncHandler.State |
onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart bodyPart) |
java.util.Optional<byte[]> |
onCompleted() |
org.asynchttpclient.AsyncHandler.State |
onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) |
org.asynchttpclient.AsyncHandler.State |
onStatusReceived(org.asynchttpclient.HttpResponseStatus responseStatus) |
void |
onThrowable(java.lang.Throwable t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onConnectionOffer, onConnectionPoolAttempt, onConnectionPooled, onHostnameResolutionAttempt, onHostnameResolutionFailure, onHostnameResolutionSuccess, onRequestSend, onRetry, onTcpConnectAttempt, onTcpConnectFailure, onTcpConnectSuccess, onTlsHandshakeAttempt, onTlsHandshakeFailure, onTlsHandshakeSuccess, onTrailingHeadersReceived
public org.asynchttpclient.AsyncHandler.State onStatusReceived(org.asynchttpclient.HttpResponseStatus responseStatus) throws java.lang.Exception
onStatusReceived
in interface org.asynchttpclient.AsyncHandler<java.util.Optional<byte[]>>
java.lang.Exception
public org.asynchttpclient.AsyncHandler.State onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) throws java.lang.Exception
onHeadersReceived
in interface org.asynchttpclient.AsyncHandler<java.util.Optional<byte[]>>
java.lang.Exception
public org.asynchttpclient.AsyncHandler.State onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart bodyPart) throws java.lang.Exception
onBodyPartReceived
in interface org.asynchttpclient.AsyncHandler<java.util.Optional<byte[]>>
java.lang.Exception
public void onThrowable(java.lang.Throwable t)
onThrowable
in interface org.asynchttpclient.AsyncHandler<java.util.Optional<byte[]>>
public java.util.Optional<byte[]> onCompleted() throws java.lang.Exception
onCompleted
in interface org.asynchttpclient.AsyncHandler<java.util.Optional<byte[]>>
java.lang.Exception
Copyright © 2021. All Rights Reserved.