Enum FederationBatchStatus
- java.lang.Object
-
- java.lang.Enum<FederationBatchStatus>
-
- app.coronawarn.server.common.persistence.domain.FederationBatchStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<FederationBatchStatus>
public enum FederationBatchStatus extends Enum<FederationBatchStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR
An error occurred while processing the batch.ERROR_WONT_RETRY
Processing a batch failed for the second time and will not be attempted again.PROCESSED
The corresponding batch has been processed.PROCESSED_WITH_ERROR
The corresponding batch has been processed.UNPROCESSED
The corresponding batch has not been processed yet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FederationBatchStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static FederationBatchStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNPROCESSED
public static final FederationBatchStatus UNPROCESSED
The corresponding batch has not been processed yet.
-
PROCESSED
public static final FederationBatchStatus PROCESSED
The corresponding batch has been processed.
-
PROCESSED_WITH_ERROR
public static final FederationBatchStatus PROCESSED_WITH_ERROR
The corresponding batch has been processed. Some keys did not pass validation.
-
ERROR
public static final FederationBatchStatus ERROR
An error occurred while processing the batch.
-
ERROR_WONT_RETRY
public static final FederationBatchStatus ERROR_WONT_RETRY
Processing a batch failed for the second time and will not be attempted again.
-
-
Method Detail
-
values
public static FederationBatchStatus[] 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 (FederationBatchStatus c : FederationBatchStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FederationBatchStatus valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-