public enum XNackMode extends Enum<XNackMode> implements ProtocolKeyword
| Enum Constant and Description |
|---|
FAIL
Used when the message causes problems for this consumer but may succeed for other consumers (e.g., requires more
resources than available).
|
FATAL
Used for invalid or suspected malicious messages.
|
SILENT
Used when the consumer is NACKing due to internal errors or shutdown, not because the message is problematic.
|
| Modifier and Type | Field and Description |
|---|---|
byte[] |
bytes |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
static XNackMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XNackMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfname, toStringpublic static final XNackMode SILENT
public static final XNackMode FAIL
public static final XNackMode FATAL
public static XNackMode[] values()
for (XNackMode c : XNackMode.values()) System.out.println(c);
public static XNackMode 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 byte[] getBytes()
getBytes in interface ProtocolKeywordCopyright © 2026 lettuce.io. All rights reserved.