Skip to content

Commit

Permalink
Moving ProgressReceiver interface to models pacakge (#22345)
Browse files Browse the repository at this point in the history
  • Loading branch information
cochi2 authored Jun 17, 2021
1 parent 3c0b60e commit c6880e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

package com.azure.communication.callingserver;

import com.azure.communication.callingserver.models.ProgressReceiver;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

package com.azure.communication.callingserver.models;

import com.azure.communication.callingserver.ProgressReceiver;
import com.azure.communication.callingserver.implementation.Constants.ContentDownloader;
import com.azure.core.annotation.Fluent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.communication.callingserver;

import com.azure.communication.callingserver.models.ParallelDownloadOptions;
import reactor.core.publisher.Flux;
package com.azure.communication.callingserver.models;

/**
* A {@code ProgressReceiver} is an object that can be used to report progress on network transfers. When specified on
* transfer operations, the {@code 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 {@link ProgressReporter#addProgressReporting(Flux, ProgressReceiver)} to
* enable reporting on sequential transfers. Note that any method accepting a {@link ParallelDownloadOptions} will use
* transferred. The user may configure this method to report progress in whatever format desired.
* Note that any method accepting a {@link ParallelDownloadOptions} will use
* the {@code ProgressReceiver} specified there and will handle the logic to coordinate the reporting between parallel
* operations.
*/
Expand Down

0 comments on commit c6880e7

Please sign in to comment.