public class ProgressEvent
extends java.lang.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.
Modifier and Type | Field and Description |
---|---|
static int |
CANCELED_EVENT_CODE
Event code for canceled.
|
static int |
COMPLETED_EVENT_CODE
Event code for completed.
|
static int |
FAILED_EVENT_CODE
Event code for failed.
|
static int |
PART_COMPLETED_EVENT_CODE
Event code for multipart completed.
|
static int |
PART_FAILED_EVENT_CODE
Event code for multipart failed.
|
static int |
PART_STARTED_EVENT_CODE
Event code for multipart started.
|
static int |
PREPARING_EVENT_CODE
Event code for preparing.
|
static int |
RESET_EVENT_CODE
Event code for reset.
|
static int |
STARTED_EVENT_CODE
Event code for started.
|
Constructor and Description |
---|
ProgressEvent(int eventCode,
long bytesTransferred)
Constructor.
|
ProgressEvent(long bytesTransferred)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public ProgressEvent(long bytesTransferred)
bytesTransferred
- the bytes transferred.public ProgressEvent(int eventCode, long bytesTransferred)
eventCode
- the event code.bytesTransferred
- the bytes transferred.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 © 2018 Amazon Web Services, Inc. All Rights Reserved.