public enum ActivityStatusType extends Enum<ActivityStatusType>
| Enum Constant and Description |
|---|
FAILED
Podczas przetwarzania zadania wystąpił wyjątek.
|
PROCESSING
Zadanie jest w trakcie przetwarzania.
|
SUCCESSFUL
Przetwarzanie zadania zakończyło się powodzeniem, nie wystąpiły wyjątki.
|
| Modifier and Type | Method and Description |
|---|---|
static ActivityStatusType |
createActivityStatus(int statusCode)
Metoda wytwórcza, to generowania statusów zadań.
|
static ActivityStatusType |
createActivityStatus(String statusName)
Metoda wytwórcza, to generowania statusów zadań.
|
int |
getStatusCode() |
static ActivityStatusType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActivityStatusType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActivityStatusType FAILED
public static final ActivityStatusType SUCCESSFUL
public static final ActivityStatusType PROCESSING
public static ActivityStatusType[] values()
for (ActivityStatusType c : ActivityStatusType.values()) System.out.println(c);
public static ActivityStatusType 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 static ActivityStatusType createActivityStatus(int statusCode) throws IllegalArgumentException
statusCode - Kod statusu zadania. Możliwe wartości: -1(FAILED), 0(SUCCESSFUL), 1(PROCESSING).IllegalArgumentException - Jeżeli podano niewłaściwy kod statusu.public static ActivityStatusType createActivityStatus(String statusName) throws IllegalArgumentException
statusName - Nazwa statusu zadania. Możliwe wartości: FAILED, SUCCESSFUL, PROCESSING. Wielkość znaków nie
jest brana pod uwagę.IllegalArgumentException - Jeżeli podano niewłaściwy kod statusu.public int getStatusCode()
Copyright © 2023 Suncode. All rights reserved.