Enum MessageStatus
- java.lang.Object
-
- java.lang.Enum<MessageStatus>
-
- com.github.sonus21.rqueue.models.enums.MessageStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MessageStatus>
public enum MessageStatus extends java.lang.Enum<MessageStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETEDDISCARDEDMessage was discarded due to retry limit exceeded orTaskExecutionBackOff.STOPwas returned by task execution backoff method.ENQUEUEDFAILEDIGNOREDMOVED_TO_DLQPROCESSINGSUCCESSFUL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MessageStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENQUEUED
public static final MessageStatus ENQUEUED
-
PROCESSING
public static final MessageStatus PROCESSING
-
DELETED
public static final MessageStatus DELETED
-
IGNORED
public static final MessageStatus IGNORED
-
SUCCESSFUL
public static final MessageStatus SUCCESSFUL
-
MOVED_TO_DLQ
public static final MessageStatus MOVED_TO_DLQ
-
DISCARDED
public static final MessageStatus DISCARDED
Message was discarded due to retry limit exceeded orTaskExecutionBackOff.STOPwas returned by task execution backoff method.
-
FAILED
public static final MessageStatus FAILED
-
-
Method Detail
-
values
public static MessageStatus[] 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 (MessageStatus c : MessageStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-