Enum B2UploadState
- java.lang.Object
-
- java.lang.Enum<B2UploadState>
-
- com.backblaze.b2.client.structures.B2UploadState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<B2UploadState>
public enum B2UploadState extends java.lang.Enum<B2UploadState>
Generally, uploads follow this state diagram:
WAITING_TO_START--| | | | | v | STARTING ----| | | | | v | UPLOADING | | | | | | | v v v SUCCEEDED FAILED
Generally, the purpose of these updates is to provide high-level progress information. Don't count on the rate at which you get the updates and don't count on seeing all of them. For instance, if a part of an upload succeeded previously, you may only see an update for state SUCCEEDED. Similarly, if the upload is canceled violently somehow you might not get any more updates. If the upload hits retryable errors, it may jump back to an earlier state and the bytesSoFar may go back to zero. Attempt count will be incremented.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILED
STARTING
SUCCEEDED
UPLOADING
WAITING_TO_START
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static B2UploadState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static B2UploadState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WAITING_TO_START
public static final B2UploadState WAITING_TO_START
-
STARTING
public static final B2UploadState STARTING
-
UPLOADING
public static final B2UploadState UPLOADING
-
FAILED
public static final B2UploadState FAILED
-
SUCCEEDED
public static final B2UploadState SUCCEEDED
-
-
Method Detail
-
values
public static B2UploadState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (B2UploadState c : B2UploadState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static B2UploadState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-