public enum PauseStatus extends Enum<PauseStatus>
Enum Constant and Description |
---|
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)
|
Modifier and Type | Method and Description |
---|---|
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(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.
|
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
public static PauseStatus[] values()
for (PauseStatus c : PauseStatus.values()) System.out.println(c);
public static PauseStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isPaused()
public boolean isCancelled()
public boolean unchanged()
Copyright © 2016. All rights reserved.