public interface ProgressAsyncHandler<T> extends AsyncHandler<T>
AsyncHandler
with two extra callback who get invoked during the content upload to a remote server.
This AsyncHandler
must be used only with PUT and POST request.AsyncHandler.State
Modifier and Type | Method and Description |
---|---|
AsyncHandler.State |
onContentWriteProgress(long amount,
long current,
long total)
Invoked when the I/O operation associated with the
Request body wasn't fully written in a single I/O write
operation. |
AsyncHandler.State |
onContentWritten()
Invoked when the content (a
File , String or FileInputStream has been fully
written on the I/O socket. |
AsyncHandler.State |
onHeadersWritten()
Invoked when the content (a
File , String or FileInputStream has been fully
written on the I/O socket. |
onBodyPartReceived, onCompleted, onHeadersReceived, onStatusReceived, onThrowable
AsyncHandler.State onHeadersWritten()
File
, String
or FileInputStream
has been fully
written on the I/O socket.AsyncHandler.State
telling to CONTINUE or ABORT the current processing.AsyncHandler.State onContentWritten()
File
, String
or FileInputStream
has been fully
written on the I/O socket.AsyncHandler.State
telling to CONTINUE or ABORT the current processing.AsyncHandler.State onContentWriteProgress(long amount, long current, long total)
Request
body wasn't fully written in a single I/O write
operation. This method is never invoked if the write operation complete in a sinfle I/O write.amount
- The amount of bytes to transfer.current
- The amount of bytes transferredtotal
- The total number of bytes transferredAsyncHandler.State
telling to CONTINUE or ABORT the current processing.Copyright © 2015. All Rights Reserved.