Name | |
---|---|
String | toString() |
int | getValue() |
boolean | equals(MamaThrottleInstance throttleInstance) |
String | valueToString(int value) |
MamaThrottleInstance | enumObjectForValue(int value) |
Name | |
---|---|
final int | DEFAULT_THROTTLE_VALUE |
final MamaThrottleInstance | DEFAULT_THROTTLE |
final int | INITIAL_THROTTLE_VALUE |
final MamaThrottleInstance | INITIAL_THROTTLE |
final int | RECAP_THROTTLE_VALUE |
final MamaThrottleInstance | RECAP_THROTTLE |
class com::wombat::mama::MamaThrottleInstance;
This class provides an enumeration of types and methods for MAMA throttle instance. Used with setOutboundThrottle and getOutboundThrottle in the JNI version of the API.
Enum to determine into which throttle a call applies. Currently the default throttle, used by the publisher, and the initial value request throttle are the same. Mama sends recap requests on a separate throttle.
inline String toString()
Return: Name for the type.
Returns the stringified name for the enumerated type.
inline int getValue()
Return: The integer type.
Returns the integer value for the type. This value can be used in switch statements against the public XXX_VALUE static members of the class.
inline boolean equals(
MamaThrottleInstance throttleInstance
)
Parameters:
Return: Whether the two objects are equal.
Compare the two types for equality. Returns true if the integer value of both types is equal. Otherwise returns false.
static inline String valueToString(
int value
)
Parameters:
Return: The string name value of the specified MamaThrottleInstance integer value.
Utility method for mapping type integer values to corresponding string values.
Returns “UNKNOWN” is the int type value is not recognised.
static inline MamaThrottleInstance enumObjectForValue(
int value
)
Parameters:
Return: Instance of a MamaThrottleInstance if a mapping exists.
Return an instance of a MamaMdMsgType corresponding to the specified integer value. Returns null if the integer value is not recognised.
static final int DEFAULT_THROTTLE_VALUE = 0;
The default throttle queue
static final MamaThrottleInstance DEFAULT_THROTTLE =
new MamaThrottleInstance (valueToString (DEFAULT_THROTTLE_VALUE),
DEFAULT_THROTTLE_VALUE);
static final int INITIAL_THROTTLE_VALUE = 1;
The initial value throttle queue
static final MamaThrottleInstance INITIAL_THROTTLE =
new MamaThrottleInstance (valueToString (INITIAL_THROTTLE_VALUE),
INITIAL_THROTTLE_VALUE);
static final int RECAP_THROTTLE_VALUE = 2;
The recap throttle queue
static final MamaThrottleInstance RECAP_THROTTLE =
new MamaThrottleInstance (valueToString (RECAP_THROTTLE_VALUE),
RECAP_THROTTLE_VALUE);
Updated on 2023-03-31 at 15:29:44 +0100