你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ProgressReporter Class
- java.
lang. Object - com.
azure. storage. common. ProgressReporter
- com.
@Deprecated
public final class ProgressReporter
Note
This class has been deprecated. Use com.azure.core.util.ProgressReporter
ProgressReporter
offers a convenient way to add progress tracking to a given Flux.
Constructor Summary
Constructor | Description |
---|---|
ProgressReporter() |
Creates a new instance of ProgressReporter. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Flux<Byte |
addParallelProgressReporting(Flux<ByteBuffer> data, ProgressReceiver progressReceiver, Lock lock, AtomicLong totalProgress)
Deprecated
Use com.azure.core.util.ProgressReporter
Adds parallel progress reporting functionality to the given |
static
Flux<Byte |
addProgressReporting(Flux<ByteBuffer> data, ProgressReceiver progressReceiver)
Deprecated
Use com.azure.core.util.ProgressReporter
Adds progress reporting functionality to the given |
Methods inherited from java.lang.Object
Constructor Details
ProgressReporter
public ProgressReporter()
Creates a new instance of ProgressReporter.
Method Details
addParallelProgressReporting
@Deprecated
public static Flux
Deprecated
Adds parallel progress reporting functionality to the given Flux
. Each subscription (and therefore each retry) will rewind the progress reported so as not to over-report. The data reported will be the total amount of data emitted so far, or the "current position" of the Flux in parallel.
Parameters:
Returns:
Flux
that emits the same data as the source but calls a callback to report the total amount of
data emitted so far.addProgressReporting
@Deprecated
public static Flux
Deprecated
Adds progress reporting functionality to the given Flux
. Each subscription (and therefore each retry) will rewind the progress reported so as not to over-report. The data reported will be the total amount of data emitted so far, or the "current position" of the Flux.
Parameters:
Returns:
Flux
that emits the same data as the source but calls a callback to report the total amount of
data emitted so far.