Enum 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.
    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.lang.NullPointerException - if the argument is null