ProgressReceiver Interface
Implements
@Deprecated
public interface ProgressReceiver
extends ProgressListener
Note
This class has been deprecated. Use ProgressListener.
A ProgressReceiver
is an object that can be used to report progress on network transfers. When specified on transfer operations, the reportProgress
method will be called periodically with the total number of bytes transferred. The user may configure this method to report progress in whatever format desired. It is recommended that this type be used in conjunction with addProgressReporting(Flux<ByteBuffer> data, ProgressReceiver progressReceiver) to enable reporting on sequential transfers. Note that any method accepting a ParallelTransferOptions will use the ProgressReceiver
specified there and will handle the logic to coordinate the reporting between parallel operations.
Method Summary
Modifier and Type | Method and Description |
---|---|
default void | handleProgress(long bytesTransferred) |
abstract void |
reportProgress(long bytesTransferred)
The callback function invoked as progress is reported. |
Method Details
handleProgress
public default void handleProgress(long bytesTransferred)
Parameters:
reportProgress
public abstract void reportProgress(long bytesTransferred)
The callback function invoked as progress is reported.
Parameters:
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應