Enum StreamInfo.StorePressurePolicy
- java.lang.Object
-
- java.lang.Enum<StreamInfo.StorePressurePolicy>
-
- com.amazonaws.kinesisvideo.producer.StreamInfo.StorePressurePolicy
-
- All Implemented Interfaces:
Serializable,Comparable<StreamInfo.StorePressurePolicy>
- Enclosing class:
- StreamInfo
public static enum StreamInfo.StorePressurePolicy extends Enum<StreamInfo.StorePressurePolicy>
Storage pressure policy that must correspond to the native counterparts
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENT_STORE_PRESSURE_POLICY_DROP_TAIL_ITEMEvict the earliest frames to make space for the new frame being put.CONTENT_STORE_PRESSURE_POLICY_OOMReturn an error STATUS_STORE_OUT_OF_MEMORY when we have no available storage when putting frame.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIntValue()static StreamInfo.StorePressurePolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static StreamInfo.StorePressurePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTENT_STORE_PRESSURE_POLICY_OOM
public static final StreamInfo.StorePressurePolicy CONTENT_STORE_PRESSURE_POLICY_OOM
Return an error STATUS_STORE_OUT_OF_MEMORY when we have no available storage when putting frame. The value of 0 is the default.
-
CONTENT_STORE_PRESSURE_POLICY_DROP_TAIL_ITEM
public static final StreamInfo.StorePressurePolicy CONTENT_STORE_PRESSURE_POLICY_DROP_TAIL_ITEM
Evict the earliest frames to make space for the new frame being put. Might result in dropped frame callbacks fired.
-
-
Method Detail
-
values
public static StreamInfo.StorePressurePolicy[] 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 (StreamInfo.StorePressurePolicy c : StreamInfo.StorePressurePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamInfo.StorePressurePolicy valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIntValue
public int getIntValue()
-
-