Enum OnapMsgRouterBatchPublisher.DropPolicy
- java.lang.Object
-
- java.lang.Enum<OnapMsgRouterBatchPublisher.DropPolicy>
-
- io.continual.onap.services.publisher.OnapMsgRouterBatchPublisher.DropPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<OnapMsgRouterBatchPublisher.DropPolicy>
- Enclosing class:
- OnapMsgRouterBatchPublisher
public static enum OnapMsgRouterBatchPublisher.DropPolicy extends Enum<OnapMsgRouterBatchPublisher.DropPolicy>
What to do if the send buffer reaches maximum capacity
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DROP_NEWESTDROP_OLDEST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OnapMsgRouterBatchPublisher.DropPolicyfromSettingString(String val)static OnapMsgRouterBatchPublisher.DropPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static OnapMsgRouterBatchPublisher.DropPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DROP_OLDEST
public static final OnapMsgRouterBatchPublisher.DropPolicy DROP_OLDEST
-
DROP_NEWEST
public static final OnapMsgRouterBatchPublisher.DropPolicy DROP_NEWEST
-
-
Method Detail
-
values
public static OnapMsgRouterBatchPublisher.DropPolicy[] 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 (OnapMsgRouterBatchPublisher.DropPolicy c : OnapMsgRouterBatchPublisher.DropPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OnapMsgRouterBatchPublisher.DropPolicy 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
-
fromSettingString
public static OnapMsgRouterBatchPublisher.DropPolicy fromSettingString(String val)
-
-