@Generated(value="com.neeve.adm.AdmXbufGenerator", date="Fri Dec 05 13:32:50 UTC 2025") @AdmGenerated(encoding="Xbuf", compatLevel="4.1.0", admVersion="Unknown Version", date="12/5/25 1:32 PM", buildInfo="nvx-talon-3.16.63 (nvx-codegen-plugin)") @AdmFactoryInfo(factoryClass=SrvMonFactory.class, vfid=32, ofid=32, typeId=201) public final class SrvMonDisruptorStats extends Object implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonDisruptorStats>, ISrvMonDisruptorStats
| ADM Type | Embedded Entity |
| Factory | SrvMonFactory |
| ADM Field Summary |
|---|
| Field | Type | Id | Description |
|---|---|---|---|
| capacity | Integer | 16 | The size of the diruptor's ringbuffer. |
| claimStrategy | SrvMonDisruptorClaimStrategy |
18 | The claim strategy used by threads inputing events to the disruptor. |
| offerToPollLatencies | SrvMonIntSeries |
20 | Measures latency of events passing in the disruptor. |
| remaining | Integer | 17 | The number of free ringbuffer slots. |
| waitStrategy | SrvMonDisruptorWaitStrategy |
19 | The wait strategy used by thread processing events in the disruptor. |
| Modifier and Type | Class and Description |
|---|---|
static class |
SrvMonDisruptorStats.Field
The SrvMonDisruptorStats xbuf field (used internally when this entity is used as a field of another entity).
|
static class |
SrvMonDisruptorStats.ListField
The SrvMonDisruptorStats list field (used internally when this entity is used as an array field of another entity).
|
| Modifier and Type | Field and Description |
|---|---|
static SrvMonDisruptorStats[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.
|
| Constructor and Description |
|---|
SrvMonDisruptorStats() |
SrvMonDisruptorStats(int initialBackingBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
SrvMonDisruptorStats |
acquire() |
void |
clearCapacity()
Clears the value of 'capacity'.
|
void |
clearClaimStrategy()
Clears the value of 'claimStrategy'.
|
void |
clearContent() |
void |
clearOfferToPollLatencies()
Clears the value of 'offerToPollLatencies'.
|
void |
clearRemaining()
Clears the value of 'remaining'.
|
void |
clearWaitStrategy()
Clears the value of 'waitStrategy'.
|
void |
clearXRogType() |
Object |
clone()
Creates a clone of this object.
|
SrvMonDisruptorStats |
copy()
Creates a copy of this SrvMonDisruptorStats.
|
void |
copyInto(SrvMonDisruptorStats copy)
Copies the contents of this SrvMonDisruptorStats into the target.
|
static SrvMonDisruptorStats |
create() |
static SrvMonDisruptorStats |
createFrom(byte[] serializedContainer) |
static SrvMonDisruptorStats |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
static SrvMonDisruptorStats |
createFromSerializedXbufContainer(byte[] serializedContainer) |
static SrvMonDisruptorStats |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
static com.neeve.xbuf.XbufSchema |
createSchema() |
SrvMonDisruptorStats |
deserializeFromByteArray(byte[] array) |
SrvMonDisruptorStats |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonDisruptorStats |
deserializeFromByteBuffer(ByteBuffer buffer) |
SrvMonDisruptorStats |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonDisruptorStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length) |
SrvMonDisruptorStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonDisruptorStats |
deserializeFromNative(long address,
int offset,
int length) |
SrvMonDisruptorStats |
deserializeFromNative(long address,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
int |
desync(PktBuffer buffer,
int pos,
boolean frameOnly)
Desync fields from a buffer
|
void |
desyncFieldBitmask() |
void |
dispose() |
PktBuffer |
getBackingBuffer() |
int |
getCapacity()
Gets the value of 'capacity'.
|
Integer |
getCapacityAsObject()
Gets the value of 'capacity'.
|
com.neeve.xbuf.XbufVariableIntField |
getCapacityField() |
static int |
getCapacityFieldId() |
SrvMonDisruptorClaimStrategy |
getClaimStrategy()
Gets the value of 'claimStrategy'.
|
com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorClaimStrategy> |
getClaimStrategyField() |
static int |
getClaimStrategyFieldId() |
static com.neeve.xbuf.XbufDesyncPolicy |
getDesyncPolicy() |
boolean |
getIsReadOnly() |
SrvMonIntSeries |
getOfferToPollLatencies()
Gets the value of 'offerToPollLatencies'.
|
static int |
getOfferToPollLatenciesFieldId() |
void |
getOfferToPollLatenciesTo(SrvMonIntSeries to)
Copies the value of SrvMonIntSeries into the provided value.
|
int |
getOwnerCount() |
UtlPool<SrvMonDisruptorStats> |
getPool()
Get a pool item's pool.
|
int |
getRemaining()
Gets the value of 'remaining'.
|
Integer |
getRemainingAsObject()
Gets the value of 'remaining'.
|
com.neeve.xbuf.XbufVariableIntField |
getRemainingField() |
static int |
getRemainingFieldId() |
int |
getSerializeToNativeLength() |
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list.
|
SrvMonDisruptorWaitStrategy |
getWaitStrategy()
Gets the value of 'waitStrategy'.
|
com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorWaitStrategy> |
getWaitStrategyField() |
static int |
getWaitStrategyFieldId() |
short |
getXRogType() |
Short |
getXRogTypeAsObject() |
com.neeve.xbuf.XbufVariableShortField |
getXRogTypeField() |
static int |
getXRogTypeFieldId() |
boolean |
hasCapacity()
Checks for the presence of 'capacity'.
|
boolean |
hasClaimStrategy()
Checks for the presence of 'claimStrategy'.
|
boolean |
hasOfferToPollLatencies()
Checks for the presence of 'offerToPollLatencies'.
|
boolean |
hasRemaining()
Checks for the presence of 'remaining'.
|
boolean |
hasWaitStrategy()
Checks for the presence of 'waitStrategy'.
|
boolean |
hasXRogType() |
SrvMonDisruptorStats |
init()
Initialize an item.
|
boolean |
isBufferBacked() |
boolean |
isDirty() |
boolean |
isReferenceCounted() |
boolean |
isValid()
Tests if this object has any validation errors.
|
void |
lendOfferToPollLatencies(SrvMonIntSeries val)
'Lends' a reference of the SrvMonIntSeries to the message for this field.
|
static void |
optimizeFor(int val) |
byte[] |
serializeToByteArray() |
ByteBuffer |
serializeToByteBuffer() |
com.neeve.io.IOBuffer |
serializeToIOBuffer(boolean useNative) |
int |
serializeToNative(long address,
int addressOffset) |
void |
setAsReadOnly() |
void |
setCapacity(int val)
Sets the value of 'capacity'.
|
void |
setCapacityAsObject(Integer val)
Sets the value of 'capacity'.
|
void |
setCapacityFrom(com.neeve.xbuf.XbufVariableIntField val) |
void |
setClaimStrategy(SrvMonDisruptorClaimStrategy val)
Sets the value of 'claimStrategy'.
|
void |
setClaimStrategyFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorClaimStrategy> val) |
static void |
setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val) |
static void |
setFieldInterest(List<Integer> fieldIds) |
void |
setOfferToPollLatencies(SrvMonIntSeries val)
Sets the value of 'offerToPollLatencies'.
|
SrvMonDisruptorStats |
setPool(UtlPool<SrvMonDisruptorStats> pool)
Set a pool item's pool.
|
void |
setPreserializedFields(PktBuffer buffer) |
void |
setRemaining(int val)
Sets the value of 'remaining'.
|
void |
setRemainingAsObject(Integer val)
Sets the value of 'remaining'.
|
void |
setRemainingFrom(com.neeve.xbuf.XbufVariableIntField val) |
void |
setWaitStrategy(SrvMonDisruptorWaitStrategy val)
Sets the value of 'waitStrategy'.
|
void |
setWaitStrategyFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorWaitStrategy> val) |
void |
setXRogType(short val) |
void |
setXRogTypeAsObject(Short val) |
void |
setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val) |
void |
sync() |
void |
syncFieldBitmask() |
SrvMonIntSeries |
takeOfferToPollLatencies()
'Takes' a reference to the offerToPollLatencies field from the message.
|
String |
toString() |
public static final SrvMonDisruptorStats[] EMPTY_ARRAY
public SrvMonDisruptorStats()
public SrvMonDisruptorStats(int initialBackingBufferSize)
public static SrvMonDisruptorStats create()
public static SrvMonDisruptorStats createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonDisruptorStats createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonDisruptorStats createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonDisruptorStats createFrom(byte[] serializedContainer)
public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
public final void clearContent()
public final void syncFieldBitmask()
public final void desyncFieldBitmask()
public final PktBuffer getBackingBuffer()
public static final void optimizeFor(int val)
public final void setAsReadOnly()
public final boolean getIsReadOnly()
public final void setPreserializedFields(PktBuffer buffer)
public static final int getXRogTypeFieldId()
public final void setXRogType(short val)
public final void setXRogTypeAsObject(Short val)
public final short getXRogType()
public final Short getXRogTypeAsObject()
public final void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
public final com.neeve.xbuf.XbufVariableShortField getXRogTypeField()
public final boolean hasXRogType()
public final void clearXRogType()
public static final int getCapacityFieldId()
public final void setCapacity(int val)
ISrvMonDisruptorStatssetCapacity in interface ISrvMonDisruptorStatsval - The value to set.public final void setCapacityAsObject(Integer val)
ISrvMonDisruptorStatssetCapacityAsObject in interface ISrvMonDisruptorStatsval - The value to set.public final int getCapacity()
ISrvMonDisruptorStatsgetCapacity in interface ISrvMonDisruptorStatspublic final Integer getCapacityAsObject()
ISrvMonDisruptorStatsgetCapacityAsObject in interface ISrvMonDisruptorStatspublic final void setCapacityFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getCapacityField()
public final boolean hasCapacity()
ISrvMonDisruptorStatshasCapacity in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.getCapacity()public final void clearCapacity()
ISrvMonDisruptorStatsclearCapacity in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.setCapacity(int)public static final int getRemainingFieldId()
public final void setRemaining(int val)
ISrvMonDisruptorStatssetRemaining in interface ISrvMonDisruptorStatsval - The value to set.public final void setRemainingAsObject(Integer val)
ISrvMonDisruptorStatssetRemainingAsObject in interface ISrvMonDisruptorStatsval - The value to set.public final int getRemaining()
ISrvMonDisruptorStatsgetRemaining in interface ISrvMonDisruptorStatspublic final Integer getRemainingAsObject()
ISrvMonDisruptorStatsgetRemainingAsObject in interface ISrvMonDisruptorStatspublic final void setRemainingFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getRemainingField()
public final boolean hasRemaining()
ISrvMonDisruptorStatshasRemaining in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.getRemaining()public final void clearRemaining()
ISrvMonDisruptorStatsclearRemaining in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.setRemaining(int)public static final int getClaimStrategyFieldId()
public final void setClaimStrategy(SrvMonDisruptorClaimStrategy val)
ISrvMonDisruptorStatssetClaimStrategy in interface ISrvMonDisruptorStatsval - The value to set.public final void setClaimStrategyFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorClaimStrategy> val)
public final com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorClaimStrategy> getClaimStrategyField()
public final SrvMonDisruptorClaimStrategy getClaimStrategy()
ISrvMonDisruptorStatsgetClaimStrategy in interface ISrvMonDisruptorStatspublic final boolean hasClaimStrategy()
ISrvMonDisruptorStatshasClaimStrategy in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.getClaimStrategy()public final void clearClaimStrategy()
ISrvMonDisruptorStatsclearClaimStrategy in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.setClaimStrategy(SrvMonDisruptorClaimStrategy)public static final int getWaitStrategyFieldId()
public final void setWaitStrategy(SrvMonDisruptorWaitStrategy val)
ISrvMonDisruptorStatssetWaitStrategy in interface ISrvMonDisruptorStatsval - The value to set.public final void setWaitStrategyFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorWaitStrategy> val)
public final com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorWaitStrategy> getWaitStrategyField()
public final SrvMonDisruptorWaitStrategy getWaitStrategy()
ISrvMonDisruptorStatsgetWaitStrategy in interface ISrvMonDisruptorStatspublic final boolean hasWaitStrategy()
ISrvMonDisruptorStatshasWaitStrategy in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.getWaitStrategy()public final void clearWaitStrategy()
ISrvMonDisruptorStatsclearWaitStrategy in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.setWaitStrategy(SrvMonDisruptorWaitStrategy)public static final int getOfferToPollLatenciesFieldId()
public final void setOfferToPollLatencies(SrvMonIntSeries val)
ISrvMonDisruptorStatssetOfferToPollLatencies in interface ISrvMonDisruptorStatsval - The value to set.public final void lendOfferToPollLatencies(SrvMonIntSeries val)
ISrvMonDisruptorStats
NOTE:
It is illegal to hold onto an entity 'set' on a message post the disposal of the container message.
This is true even if a reference to the entity is explicitly 'acquired' by the application via acquire().
To hold onto the reference of an entity beyond the lifecycle of its container message, an application must own a reference to the entity (via, for example, 'taking' the entity off an inbound message) and then 'lend' the entity to the message for sending. The act of 'lending' an entity to a message implies that the application continues to own the entity even though the message is holding a reference to it for the duration of the send.
lendOfferToPollLatencies in interface ISrvMonDisruptorStatsval - the value to 'lend' to lend.public final SrvMonIntSeries getOfferToPollLatencies()
ISrvMonDisruptorStatsgetOfferToPollLatencies in interface ISrvMonDisruptorStatspublic final void getOfferToPollLatenciesTo(SrvMonIntSeries to)
ISrvMonDisruptorStatsIF the value is not set, then the contents of the provided SrvMonIntSeries are cleared.
getOfferToPollLatenciesTo in interface ISrvMonDisruptorStatsto - the value to copy intoSrvMonIntSeries.copyInto(SrvMonIntSeries)public final SrvMonIntSeries takeOfferToPollLatencies()
ISrvMonDisruptorStats
NOTE:
A nested entity reference returned by getXXX() is only valid until the entity is disposed
i.e. the act of getting an entity does not transfer ownership of the entity to the application
A message disposes of its reference to its contained entities when it is disposed itself.
An AEP engine disposes a message on return from its message handler. Therefore, applications working with AEP engines that wish to hold onto a nested entity reference post return from its containing message's handler must either acquire a reference to the container message or 'take' the nested entity itself from the container message. The act of 'taking' an entity differs from 'getting' an entity in that 'take' does what is necessary to ensure that the entity contents are not cleared and the entity not disposed when the message itself is disposed. For a taken entity to be disposed, the application must explicitly dispose it when done working with it.
takeOfferToPollLatencies in interface ISrvMonDisruptorStatsnull if the field is not set.public final boolean hasOfferToPollLatencies()
ISrvMonDisruptorStatshasOfferToPollLatencies in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.getOfferToPollLatencies()public final void clearOfferToPollLatencies()
ISrvMonDisruptorStatsclearOfferToPollLatencies in interface ISrvMonDisruptorStatsISrvMonDisruptorStats.setOfferToPollLatencies(SrvMonIntSeries)public final boolean isDirty()
public static final com.neeve.xbuf.XbufSchema createSchema()
public final byte[] serializeToByteArray()
public final ByteBuffer serializeToByteBuffer()
public final com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)
public final boolean isBufferBacked()
public final int getSerializeToNativeLength()
public final int serializeToNative(long address,
int addressOffset)
public final SrvMonDisruptorStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonDisruptorStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonDisruptorStats deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonDisruptorStats deserializeFromByteArray(byte[] array)
public final SrvMonDisruptorStats deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonDisruptorStats deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonDisruptorStats deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonDisruptorStats deserializeFromNative(long address, int offset, int length)
public final void sync()
public final int desync(PktBuffer buffer, int pos, boolean frameOnly)
com.neeve.xbuf.IXbufDesyncerdesync in interface com.neeve.xbuf.IXbufDesyncerbuffer - The buffer to desync frompos - The position in the container's backing buffer to desync
fromframeOnly - Whether to frame the field on the underlying buffer.
See XbufField.desync(PktBuffer, int, boolean) for more
informationpublic final SrvMonDisruptorStats init()
UtlPool.ItemThis method is invoked by an item pool very time an item is put into the pool. The method should wipe the contents of the item so as to present a fresh instance of the item to the caller when retrieved from the pool.
init in interface UtlPool.Item<SrvMonDisruptorStats>public final SrvMonDisruptorStats setPool(UtlPool<SrvMonDisruptorStats> pool)
UtlPool.ItemThis method is invoked by an item pool at the time an item is added to the pool. The intent is to record the item's source pool in the item so it can be disposed back into the pool when the user is done working with it.
setPool in interface UtlPool.Item<SrvMonDisruptorStats>public final UtlPool<SrvMonDisruptorStats> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)
getPool in interface UtlPool.Item<SrvMonDisruptorStats>UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)public final boolean isReferenceCounted()
public final SrvMonDisruptorStats acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy() method in that:
public final SrvMonDisruptorStats copy()
The copy copies primitive, enum and embedded entity fields into the returned copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonDisruptorStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonDisruptorStats is read only.
public final void copyInto(SrvMonDisruptorStats copy)
The copy clears the target's contents and copies primitive, enum and embedded entity fields into the provided copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonDisruptorStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonDisruptorStats is read only.
copy - The target into which to copy.public final boolean isValid()
IRogValidatableisValid in interface IRogValidatablepublic final void getValidationErrors(List<XString> results, String errorPrefix)
IRogValidatablegetValidationErrors in interface IRogValidatableresults - A results list into which validation errors will be collected.errorPrefix - The bean path prefix to use when identifying invalid fields or null if validating a top level entity.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.