public class ProgressEvent extends Object
This class could be used for both Amazon S3 and Amazon Glacier clients. The legacy Amazon S3 progress event com.amazonaws.services.s3.model.ProgressEvent has been deprecated in favor of this new class.
限定符和类型 | 字段和说明 |
---|---|
protected long |
bytesTransferred
The number of bytes transferred since the last progress event.
|
static int |
CANCELED_EVENT_CODE |
static int |
COMPLETED_EVENT_CODE |
protected int |
eventCode
The unique event code identifying the type of event this object
represents.
|
static int |
FAILED_EVENT_CODE |
static int |
PART_COMPLETED_EVENT_CODE |
static int |
PART_FAILED_EVENT_CODE |
static int |
PART_STARTED_EVENT_CODE |
static int |
PREPARING_EVENT_CODE |
static int |
RESET_EVENT_CODE |
static int |
STARTED_EVENT_CODE |
构造器和说明 |
---|
ProgressEvent(int eventCode,
long bytesTransferred) |
ProgressEvent(long bytesTransferred) |
限定符和类型 | 方法和说明 |
---|---|
long |
getBytesTransferred()
Returns the number of bytes transferred since the last progress event.
|
int |
getEventCode()
Returns the unique event code identifying the type of event this
object represents.
|
void |
setBytesTransferred(long bytesTransferred)
Sets the number of bytes transferred since the last progress event.
|
void |
setEventCode(int eventType)
Sets the unique event code identifying the type of event this object
represents.
|
String |
toString() |
public static final int PREPARING_EVENT_CODE
public static final int STARTED_EVENT_CODE
public static final int COMPLETED_EVENT_CODE
public static final int FAILED_EVENT_CODE
public static final int CANCELED_EVENT_CODE
public static final int RESET_EVENT_CODE
public static final int PART_STARTED_EVENT_CODE
public static final int PART_COMPLETED_EVENT_CODE
public static final int PART_FAILED_EVENT_CODE
protected long bytesTransferred
protected int eventCode
public ProgressEvent(long bytesTransferred)
public ProgressEvent(int eventCode, long bytesTransferred)
public void setBytesTransferred(long bytesTransferred)
bytesTransferred
- The number of bytes transferred since the last progress event.public long getBytesTransferred()
public int getEventCode()
public void setEventCode(int eventType)
eventType
- The unique event code that identifies what type of specific
type of event this object represents.Copyright © 2016. All rights reserved.