|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PauseStatus>
com.amazonaws.services.s3.transfer.PauseStatus
public enum PauseStatus
The status of a pause operation initiated on a Upload
/
Download
.
Enum Constant Summary | |
---|---|
CANCELLED
pause is not possible while transfer is already in progress AND cancel was requested; so we cancel it |
|
CANCELLED_BEFORE_START
pause is not yet applicable since transfer has not started AND cancel was requested; so we cancel it |
|
NO_EFFECT
pause is not possible while transfer is already in progress; so no action taken |
|
NOT_STARTED
pause is not yet applicable since transfer has not started; so no action taken |
|
SUCCESS
transfer successfully paused (and therefore the return information can be used to resume the transfer later on) |
Method Summary | |
---|---|
boolean |
isCancelled()
Returns true if the transfer is cancelled else false. |
boolean |
isPaused()
Returns true if the transfer is paused else false. |
boolean |
unchanged()
Returns true if the transfer is not started or the pause operation has no effect on the transfer. |
static PauseStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PauseStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PauseStatus SUCCESS
public static final PauseStatus NOT_STARTED
public static final PauseStatus CANCELLED_BEFORE_START
public static final PauseStatus NO_EFFECT
public static final PauseStatus CANCELLED
Method Detail |
---|
public static PauseStatus[] values()
for (PauseStatus c : PauseStatus.values()) System.out.println(c);
public static PauseStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic boolean isPaused()
public boolean isCancelled()
public boolean unchanged()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |