Enum PauseStatus
- All Implemented Interfaces:
Serializable, Comparable<PauseStatus>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionpause is not possible while transfer is already in progress AND cancel was requested; so we cancel itpause is not yet applicable since transfer has not started AND cancel was requested; so we cancel itpause is not possible while transfer is already in progress; so no action takenpause is not yet applicable since transfer has not started; so no action takentransfer successfully paused (and therefore the return information can be used to resume the transfer later on) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the transfer is cancelled else false.booleanisPaused()Returns true if the transfer is paused else false.booleanReturns true if the transfer is not started or the pause operation has no effect on the transfer.static PauseStatusReturns 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.
-
Enum Constant Details
-
SUCCESS
transfer successfully paused (and therefore the return information can be used to resume the transfer later on) -
NOT_STARTED
pause is not yet applicable since transfer has not started; so no action taken -
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 -
CANCELLED
pause is not possible while transfer is already in progress AND cancel was requested; so we cancel it
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isPaused
public boolean isPaused()Returns true if the transfer is paused else false. -
isCancelled
public boolean isCancelled()Returns true if the transfer is cancelled else false. -
unchanged
public boolean unchanged()Returns true if the transfer is not started or the pause operation has no effect on the transfer.
-