Package io.pravega.client.stream
Enum RetentionPolicy.RetentionType
- java.lang.Object
-
- java.lang.Enum<RetentionPolicy.RetentionType>
-
- io.pravega.client.stream.RetentionPolicy.RetentionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RetentionPolicy.RetentionType>
- Enclosing class:
- RetentionPolicy
public static enum RetentionPolicy.RetentionType extends java.lang.Enum<RetentionPolicy.RetentionType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
TIME
public static final RetentionPolicy.RetentionType TIME
Set retention based on how long data has been in the stream in milliseconds.
-
SIZE
public static final RetentionPolicy.RetentionType SIZE
Set retention based on the total size of the data in the stream in bytes.
-
-
Method Detail
-
values
public static RetentionPolicy.RetentionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RetentionPolicy.RetentionType c : RetentionPolicy.RetentionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RetentionPolicy.RetentionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-