public class ProgressListenerChain extends Object implements ProgressListener
This class could be used for both Amazon S3 and Amazon Glacier clients. The legacy Amazon S3 progress listener chain com.amazonaws.services.s3.transfer.internal.ProgressListenerChain has been deprecated in favor of this new class.
限定符和类型 | 类和说明 |
---|---|
static interface |
ProgressListenerChain.ProgressEventFilter
An interface that filters the incoming events before passing
them into the registered listeners.
|
构造器和说明 |
---|
ProgressListenerChain(ProgressListener... listeners)
Create a listener chain that directly passes all the progress events to
the specified listeners.
|
ProgressListenerChain(ProgressListenerChain.ProgressEventFilter progressEventFilter,
ProgressListener... listeners)
Create a listener chain with a ProgressEventFilter.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addProgressListener(ProgressListener listener) |
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(ProgressListenerChain.ProgressEventFilter progressEventFilter, ProgressListener... listeners)
public void addProgressListener(ProgressListener listener)
public void removeProgressListener(ProgressListener listener)
public void progressChanged(ProgressEvent progressEvent)
ProgressListener
ProgressListenerCallbackExecutor
class, which maintains a single thread
to sequentially execute all progressChanged callbacks.progressChanged
在接口中 ProgressListener
progressEvent
- The event describing the progress change.ProgressListenerCallbackExecutor
Copyright © 2016. All rights reserved.