public static enum RetentionPolicy.RetentionType extends java.lang.Enum<RetentionPolicy.RetentionType>
Enum Constant and Description |
---|
SIZE
Set retention based on the total size of the data in the stream in bytes.
|
TIME
Set retention based on how long data has been in the stream in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
static RetentionPolicy.RetentionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RetentionPolicy.RetentionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetentionPolicy.RetentionType TIME
public static final RetentionPolicy.RetentionType SIZE
public static RetentionPolicy.RetentionType[] values()
for (RetentionPolicy.RetentionType c : RetentionPolicy.RetentionType.values()) System.out.println(c);
public static RetentionPolicy.RetentionType 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 null