azure-docs-sdk-java/docs-ref-autogen/com.azure.storage.common.Pr...

41 строка
3.3 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.storage.common.ProgressReceiver"
fullName: "com.azure.storage.common.ProgressReceiver"
name: "ProgressReceiver"
nameWithType: "ProgressReceiver"
summary: "A `ProgressReceiver` is an object that can be used to report progress on network transfers."
deprecatedTag: "Use <xref uid=\"com.azure.core.util.ProgressListener\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ProgressListener\"></xref>."
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public interface **ProgressReceiver**</br> extends <xref href=\"com.azure.core.util.ProgressListener?alt=com.azure.core.util.ProgressListener&text=ProgressListener\" data-throw-if-not-resolved=\"False\" />"
methods:
- uid: "com.azure.storage.common.ProgressReceiver.handleProgress(long)"
fullName: "com.azure.storage.common.ProgressReceiver.handleProgress(long bytesTransferred)"
name: "handleProgress(long bytesTransferred)"
nameWithType: "ProgressReceiver.handleProgress(long bytesTransferred)"
modifiers:
- "default"
parameters:
- name: "bytesTransferred"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
syntax: "public default void handleProgress(long bytesTransferred)"
- uid: "com.azure.storage.common.ProgressReceiver.reportProgress(long)"
fullName: "com.azure.storage.common.ProgressReceiver.reportProgress(long bytesTransferred)"
name: "reportProgress(long bytesTransferred)"
nameWithType: "ProgressReceiver.reportProgress(long bytesTransferred)"
summary: "The callback function invoked as progress is reported."
modifiers:
- "abstract"
parameters:
- description: "The total number of bytes transferred during this transaction."
name: "bytesTransferred"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract void reportProgress(long bytesTransferred)"
desc: "The callback function invoked as progress is reported."
type: "interface"
desc: "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 <xref uid=\"com.azure.storage.common.ProgressReporter.addProgressReporting(reactor.core.publisher.Flux<java.nio.ByteBuffer>,com.azure.storage.common.ProgressReceiver)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ProgressReporter#addProgressReporting(Flux, ProgressReceiver)\"></xref> to enable reporting on sequential transfers. Note that any method accepting a <xref uid=\"com.azure.storage.common.ParallelTransferOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ParallelTransferOptions\"></xref> will use the `ProgressReceiver` specified there and will handle the logic to coordinate the reporting between parallel"
hasDeprecatedTag: true
implements:
- "<xref href=\"com.azure.core.util.ProgressListener?alt=com.azure.core.util.ProgressListener&text=ProgressListener\" data-throw-if-not-resolved=\"False\" />"
metadata: {}
package: "com.azure.storage.common"
artifact: com.azure:azure-storage-common:12.26.1