public enum StreamEntryDeletionResult extends java.lang.Enum<StreamEntryDeletionResult>
| Enum Constant and Description |
|---|
DELETED
The entry was successfully deleted/acknowledged and deleted.
|
NOT_DELETED_UNACKNOWLEDGED_OR_STILL_REFERENCED
The entry was not deleted due to one of the following reasons:
For XDELEX: The entry was not acknowledged by any consumer group
For XACKDEL: The entry still has pending references in other consumer groups
|
NOT_FOUND
The stream entry ID doesn't exist in the stream.
|
| Modifier and Type | Method and Description |
|---|---|
static StreamEntryDeletionResult |
fromCode(int code)
Creates a StreamEntryDeletionResult from the numeric code returned by Redis.
|
static StreamEntryDeletionResult |
fromLong(java.lang.Long value)
Creates a StreamEntryDeletionResult from a Long value returned by Redis.
|
int |
getCode()
Gets the numeric code returned by Redis for this result.
|
java.lang.String |
toString() |
static StreamEntryDeletionResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StreamEntryDeletionResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamEntryDeletionResult NOT_FOUND
Returned when trying to delete/acknowledge a non-existent entry.
public static final StreamEntryDeletionResult DELETED
This is the typical successful case.
public static final StreamEntryDeletionResult NOT_DELETED_UNACKNOWLEDGED_OR_STILL_REFERENCED
public static StreamEntryDeletionResult[] values()
for (StreamEntryDeletionResult c : StreamEntryDeletionResult.values()) System.out.println(c);
public static StreamEntryDeletionResult valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getCode()
public static StreamEntryDeletionResult fromCode(int code)
code - the numeric code from Redisjava.lang.IllegalArgumentException - if the code is not recognizedpublic static StreamEntryDeletionResult fromLong(java.lang.Long value)
value - the Long value from Redisjava.lang.IllegalArgumentException - if the value is null or not recognizedpublic java.lang.String toString()
toString in class java.lang.Enum<StreamEntryDeletionResult>Copyright © 2025. All rights reserved.