@Generated(value="com.neeve.adm.AdmEnumeration", date="Tue Sep 16 04:36:05 UTC 2025") @AdmGenerated(compatLevel="5.0.0", admVersion="Unknown Version", date="9/16/25 4:36 AM", buildInfo="nvx-rumi-server-4.0.595 (Rumi ADM Maven Plugin)") public enum SrvMonDisruptorClaimStrategy extends Enum<SrvMonDisruptorClaimStrategy>
| Enum Constant and Description |
|---|
MultiThreaded
Strategy to be used when there are multiple publisher threads claiming sequences.
|
MultiThreadedSufficientCores
Strategy to be used when there are multiple publisher threads claiming sequences.
|
SingleThreaded
Optimised strategy to be used when there is a single publisher thread claiming sequences.
|
Unknown
Indicates the claim strategy in use is invalid or not recognized.
|
| Modifier and Type | Field and Description |
|---|---|
static SrvMonDisruptorClaimStrategy[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays.
|
int |
val
The ordinal value
|
static List<SrvMonDisruptorClaimStrategy> |
VALUES
A zero garbage alternative to
values(). |
| Modifier and Type | Method and Description |
|---|---|
static SrvMonDisruptorClaimStrategy |
fromCode(int code)
Get an enum from its 'code' value.
|
static SrvMonDisruptorClaimStrategy |
fromCodeString(String value)
Get an enum from its 'code' value in string form.
|
static SrvMonDisruptorClaimStrategy |
fromName(long addr,
int offset,
int limit,
char delim,
IOBuffer.ParsedCount parsedCount)
Gets an enum from its serialized name value
|
static SrvMonDisruptorClaimStrategy |
fromValue(int val)
Get an enum from its value.
|
String |
getCodeString()
Gets the code value for this enumeration as a String.
|
static Class<?> |
getCodeType()
Gets the code type with which this enumeration was generated.
|
static boolean |
hasValue(int val)
Tests if the passed in value represents a 'constant' in this enumeration.
|
static int |
nameASCIILen(SrvMonDisruptorClaimStrategy val)
Get an enum's name's length serialized using ASCII encoding
|
static int |
nameTo(SrvMonDisruptorClaimStrategy val,
long addr,
int offset)
Serialize an enum's name to a native memory region
|
static SrvMonDisruptorClaimStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SrvMonDisruptorClaimStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SrvMonDisruptorClaimStrategy SingleThreaded
public static final SrvMonDisruptorClaimStrategy MultiThreaded
Strategy to be used when there are multiple publisher threads claiming sequences. This strategy is reasonably forgiving when the multiple publisher threads are highly contended or working in an environment where there is insufficient CPUs to handle multiple publisher threads.
public static final SrvMonDisruptorClaimStrategy MultiThreadedSufficientCores
This strategy requires sufficient cores to allow multiple publishers to be concurrently claiming sequences and those thread a contented relatively infrequently.
public static final SrvMonDisruptorClaimStrategy Unknown
public static final List<SrvMonDisruptorClaimStrategy> VALUES
values().public static final SrvMonDisruptorClaimStrategy[] EMPTY_ARRAY
public final int val
public static SrvMonDisruptorClaimStrategy[] values()
for (SrvMonDisruptorClaimStrategy c : SrvMonDisruptorClaimStrategy.values()) System.out.println(c);
public static SrvMonDisruptorClaimStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static final boolean hasValue(int val)
val - The value to test for.public static final int nameASCIILen(SrvMonDisruptorClaimStrategy val)
val - The enum whose name to serialize.public static final int nameTo(SrvMonDisruptorClaimStrategy val, long addr, int offset)
val - The enum whose name to serialize.addr - The native address to serialize tooffset - The offset relative to the native address to serialize topublic static final SrvMonDisruptorClaimStrategy fromName(long addr, int offset, int limit, char delim, IOBuffer.ParsedCount parsedCount)
val - The value whose name to serialize.addr - The native address where the enum's name is serializedoffset - The offset relative to the native address where the name is serializedlimit - The limit into the buffer to parsedelim - The terminating character of the serialized nameparsedCount - Contains the number of characters parsedpublic static final SrvMonDisruptorClaimStrategy fromValue(int val)
val - The value to look up.IllegalArgumentException - if the provided code is not a valid code for this enumpublic static final SrvMonDisruptorClaimStrategy fromCode(int code)
code - The 'code' value to look up.IllegalArgumentException - if the provided code is not a valid code for this enumpublic static final SrvMonDisruptorClaimStrategy fromCodeString(String value)
value - The 'code' value to look up.IllegalArgumentException - if the provided code is not a valid code for this enumpublic static final Class<?> getCodeType()
public final String getCodeString()
Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.