public class CIPostJobImpl extends AbstractTransfer implements CIPostJob
Transfer.TransferStatelistenerChain, monitor, state, stateChangeListeners| 构造器和说明 |
|---|
CIPostJobImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
COSObject cosObject,
TransferStateChangeListener listener,
GetObjectRequest getObjectRequest,
File file) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort()
Cancels this download.
|
void |
abortWithoutNotifyingStateChangeListener()
Cancels this download, but skip notifying the state change listeners.
|
String |
getBucketName()
The name of the bucket where the object is being downloaded from.
|
String |
getKey()
The key under which this object was stored in Qcloud COS.
|
ObjectMetadata |
getObjectMetadata()
Returns the ObjectMetadata for the object being downloaded.
|
CIServiceRequest |
getRequest() |
void |
setRequest(CIServiceRequest request) |
void |
setState(Transfer.TransferState state)
This method is also responsible for firing COMPLETED signal to the
listeners.
|
addProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, unwrapExecutionException, waitForCompletion, waitForExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForCompletion, waitForExceptionpublic CIPostJobImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, COSObject cosObject, TransferStateChangeListener listener, GetObjectRequest getObjectRequest, File file)
public ObjectMetadata getObjectMetadata()
public String getBucketName()
public String getKey()
public void abort()
throws IOException
abort 在接口中 CIPostJobIOExceptionpublic void abortWithoutNotifyingStateChangeListener()
throws IOException
IOExceptionpublic void setState(Transfer.TransferState state)
setState 在类中 AbstractTransferpublic CIServiceRequest getRequest()
public void setRequest(CIServiceRequest request)
Copyright © 2022. All rights reserved.