public enum ProgressEventType extends Enum<ProgressEventType>
| 枚举常量和说明 |
|---|
BYTE_TRANSFER_EVENT
已过时。
|
CLIENT_REQUEST_FAILED_EVENT
Event indicating that a client request has failed (after retries have
been conducted).
|
CLIENT_REQUEST_RETRY_EVENT
Event indicating that a failed request is detected as retryable and is
ready for the next retry.
|
CLIENT_REQUEST_STARTED_EVENT
Event indicating that the client has started sending the COS API request.
|
CLIENT_REQUEST_SUCCESS_EVENT
Event indicating that the client has received a successful service
response and has finished parsing the response data.
|
HTTP_REQUEST_COMPLETED_EVENT
Event indicating that the client has finished sending the HTTP request.
|
HTTP_REQUEST_CONTENT_RESET_EVENT
Event indicating that the HTTP request content is reset, which may or may not
be caused by the retry of the request.
|
HTTP_REQUEST_STARTED_EVENT
Event indicating that the client has started sending the HTTP request.
|
HTTP_RESPONSE_COMPLETED_EVENT
Event indicating that the client has finished reading the HTTP response.
|
HTTP_RESPONSE_CONTENT_RESET_EVENT
Event indicating that the HTTP response content is reset.
|
HTTP_RESPONSE_STARTED_EVENT
Event indicating that the client has started reading the HTTP response.
|
REQUEST_BYTE_TRANSFER_EVENT
Used to indicate the number of bytes to be sent to COS.
|
REQUEST_CONTENT_LENGTH_EVENT
Event of the content length to be sent in a request.
|
RESPONSE_BYTE_DISCARD_EVENT
Used to indicate the number of bytes discarded after being received from COS.
|
RESPONSE_BYTE_TRANSFER_EVENT
Used to indicate the number of bytes received from COS.
|
RESPONSE_CONTENT_LENGTH_EVENT
Event of the content length received in a response.
|
TRANSFER_CANCELED_EVENT |
TRANSFER_COMPLETED_EVENT |
TRANSFER_FAILED_EVENT |
TRANSFER_PART_COMPLETED_EVENT |
TRANSFER_PART_FAILED_EVENT |
TRANSFER_PART_STARTED_EVENT |
TRANSFER_PREPARING_EVENT |
TRANSFER_STARTED_EVENT |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isByteCountEvent()
Returns true if this even type is associated with some number of bytes;
false otherwise.
|
boolean |
isRequestCycleEvent()
Returns true if this event type is related to the execution of a
single http request-response to COS; false otherwise.
|
boolean |
isTransferEvent()
Returns true if this event type is a transfer event, which may involve
multiple request cycle events.
|
static ProgressEventType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ProgressEventType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
@Deprecated public static final ProgressEventType BYTE_TRANSFER_EVENT
public static final ProgressEventType REQUEST_CONTENT_LENGTH_EVENT
public static final ProgressEventType RESPONSE_CONTENT_LENGTH_EVENT
public static final ProgressEventType REQUEST_BYTE_TRANSFER_EVENT
public static final ProgressEventType RESPONSE_BYTE_TRANSFER_EVENT
public static final ProgressEventType RESPONSE_BYTE_DISCARD_EVENT
public static final ProgressEventType CLIENT_REQUEST_STARTED_EVENT
public static final ProgressEventType HTTP_REQUEST_STARTED_EVENT
public static final ProgressEventType HTTP_REQUEST_COMPLETED_EVENT
public static final ProgressEventType HTTP_REQUEST_CONTENT_RESET_EVENT
public static final ProgressEventType CLIENT_REQUEST_RETRY_EVENT
public static final ProgressEventType HTTP_RESPONSE_STARTED_EVENT
public static final ProgressEventType HTTP_RESPONSE_COMPLETED_EVENT
public static final ProgressEventType HTTP_RESPONSE_CONTENT_RESET_EVENT
public static final ProgressEventType CLIENT_REQUEST_SUCCESS_EVENT
public static final ProgressEventType CLIENT_REQUEST_FAILED_EVENT
public static final ProgressEventType TRANSFER_PREPARING_EVENT
public static final ProgressEventType TRANSFER_STARTED_EVENT
public static final ProgressEventType TRANSFER_COMPLETED_EVENT
public static final ProgressEventType TRANSFER_FAILED_EVENT
public static final ProgressEventType TRANSFER_CANCELED_EVENT
public static final ProgressEventType TRANSFER_PART_STARTED_EVENT
public static final ProgressEventType TRANSFER_PART_COMPLETED_EVENT
public static final ProgressEventType TRANSFER_PART_FAILED_EVENT
public static ProgressEventType[] values()
for (ProgressEventType c : ProgressEventType.values()) System.out.println(c);
public static ProgressEventType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean isTransferEvent()
isRequestCycleEvent()public boolean isRequestCycleEvent()
public boolean isByteCountEvent()
Copyright © 2022. All rights reserved.