com.netease.cloud.services.nos.model
public class ProgressEvent extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CANCELED_EVENT_CODE |
static int |
COMPLETED_EVENT_CODE |
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 |
STARTED_EVENT_CODE |
Constructor and Description |
---|
ProgressEvent(int bytesTransfered) |
Modifier and Type | Method and Description |
---|---|
int |
getBytesTransfered()
Returns the number of bytes transfered since the last progress event.
|
int |
getEventCode()
Returns the unique event code that identifies what type of specific type
of event this object represents.
|
void |
setBytesTransfered(int bytesTransfered)
Sets the number of bytes transfered since the last progress event.
|
void |
setEventCode(int eventType)
Sets the unique event code that identifies what type of specific type of
event this object represents.
|
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 PART_STARTED_EVENT_CODE
public static final int PART_COMPLETED_EVENT_CODE
public static final int PART_FAILED_EVENT_CODE
public void setBytesTransfered(int bytesTransfered)
bytesTransfered
- The number of bytes transfered since the last progress event.public int getBytesTransfered()
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 © 2017. All Rights Reserved.