public static enum RetentionPolicy.Type extends Enum<RetentionPolicy.Type>
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.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetentionPolicy.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetentionPolicy.Type TIME
public static final RetentionPolicy.Type SIZE
public static RetentionPolicy.Type[] values()
for (RetentionPolicy.Type c : RetentionPolicy.Type.values()) System.out.println(c);
public static RetentionPolicy.Type 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 null