Class AFTIPCSocketOptions.MessageImportance
java.lang.Object
org.newsclub.net.unix.NamedInteger
org.newsclub.net.unix.tipc.AFTIPCSocketOptions.MessageImportance
- All Implemented Interfaces:
Serializable, NamedInteger.HasOfValue
- Enclosing class:
AFTIPCSocketOptions
public static final class AFTIPCSocketOptions.MessageImportance
extends NamedInteger
implements NamedInteger.HasOfValue
The TIPC message importance.
Messages with a higher importance have a lower chance of being dropped when congestion occurs.
- Author:
- Christian Kohlschütter
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class NamedInteger
NamedInteger.HasOfValue, NamedInteger.UndefinedValueConstructor<T>Modifier and TypeClassDescriptionstatic interfaceMarks a subclass that provides a method"public static T ofValue(int v)"that allows casting an integer to this type via reflection.protected static interfaceConstructor for "undefined" values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AFTIPCSocketOptions.MessageImportanceCritical importance.static final AFTIPCSocketOptions.MessageImportanceHigh importance.static final AFTIPCSocketOptions.MessageImportanceLow importance (the default).static final AFTIPCSocketOptions.MessageImportanceMedium importance. -
Method Summary
Modifier and TypeMethodDescriptionofValue(int v) Returns aAFTIPCSocketOptions.MessageImportanceinstance for the given value.Methods inherited from class NamedInteger
equals, hashCode, init, name, ofValue, toString, valueModifier and TypeMethodDescriptionfinal booleanfinal inthashCode()protected static final <T extends NamedInteger>
T[]init(T[] values) Ensures that theVALUESarray is configured correctly.final Stringname()Returns the name.protected static final <T extends NamedInteger>
TofValue(T[] values, NamedInteger.UndefinedValueConstructor<T> constr, int v) Returns an instance given an integer value.final StringtoString()final intvalue()Returns the value.
-
Field Details
-
LOW
Low importance (the default). -
MEDIUM
Medium importance. -
HIGH
High importance. -
CRITICAL
Critical importance.
-
-
Method Details
-
ofValue
Returns aAFTIPCSocketOptions.MessageImportanceinstance for the given value.- Parameters:
v- The value.- Returns:
- The instance.
-