public enum StreamEntryDeletionResult extends Enum<StreamEntryDeletionResult>
Represents the outcome of attempting to delete a specific stream entry:
| Enum Constant and Description |
|---|
DELETED
The entry was successfully deleted from the stream.
|
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 was not found in the stream.
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static StreamEntryDeletionResult |
fromCode(int code)
Create a
StreamEntryDeletionResult from its numeric code. |
static StreamEntryDeletionResult |
fromLong(Long value)
Create a
StreamEntryDeletionResult from a Long value. |
int |
getCode()
Returns the numeric code associated with this result.
|
String |
toString() |
static StreamEntryDeletionResult |
valueOf(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 UNKNOWN
public static final StreamEntryDeletionResult NOT_FOUND
public static final StreamEntryDeletionResult DELETED
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(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 int getCode()
public static StreamEntryDeletionResult fromCode(int code)
StreamEntryDeletionResult from its numeric code.code - the numeric code.StreamEntryDeletionResult.IllegalArgumentException - if the code is unknown.public static StreamEntryDeletionResult fromLong(Long value)
StreamEntryDeletionResult from a Long value.value - the Long value, may be null.StreamEntryDeletionResult, or null if the input is null.IllegalArgumentException - if the code is unknown.public String toString()
toString in class Enum<StreamEntryDeletionResult>Copyright © 2025 lettuce.io. All rights reserved.