public class ProgressListenerChain extends Object implements ProgressListener, DeliveryMode
ProgressListener.ExceptionReporterDeliveryMode.CheckNOOP| 构造器和说明 |
|---|
ProgressListenerChain(ProgressEventFilter progressEventFilter,
ProgressListener... listeners)
Create a listener chain with a ProgressEventFilter.
|
ProgressListenerChain(ProgressListener... listeners)
Create a listener chain that directly passes all the progress events to
the specified listeners.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addProgressListener(ProgressListener listener) |
protected List<ProgressListener> |
getListeners()
Returns the listeners associated with this listener chain.
|
boolean |
isSyncCallSafe()
Returns true if it is safe to make a synchronous callback to the
implementing listener without the risk of incurring undue latency; false
otherwise.
|
void |
progressChanged(ProgressEvent progressEvent)
Called when progress has changed, such as additional bytes transferred,
transfer failed, etc.
|
void |
removeProgressListener(ProgressListener listener) |
public ProgressListenerChain(ProgressListener... listeners)
public ProgressListenerChain(ProgressEventFilter progressEventFilter, ProgressListener... listeners)
public void addProgressListener(ProgressListener listener)
public void removeProgressListener(ProgressListener listener)
protected List<ProgressListener> getListeners()
public void progressChanged(ProgressEvent progressEvent)
ProgressListenerSDKProgressPublisher. Implementation of this interface
should never block.
If the implementation follows the best practice and doesn't block, it
should then extends from SyncProgressListener.
Note any exception thrown by the listener will get ignored.
Should there be need to capture any such exception, you may consider
wrapping the listener with ProgressListener.ExceptionReporter.wrap(ProgressListener).
progressChanged 在接口中 ProgressListenerprogressEvent - The event describing the progress change.SDKProgressPublisher,
ProgressListener.ExceptionReporterpublic boolean isSyncCallSafe()
DeliveryModeisSyncCallSafe 在接口中 DeliveryModeCopyright © 2022. All rights reserved.