@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=210) public final class SrvMonPoolStats extends Object implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonPoolStats>, ISrvMonPoolStats
To keep heartbeat size under control, stats for a given pool are only included in a heartbeat if their have been pool misses in the last collection interval. Otherwise pool stats may be emitted periodically even without misses based on other criteria as well.
| ADM Type | Embedded Entity |
| Factory | SrvMonFactory |
| ADM Field Summary |
|---|
| Field | Type | Id | Description |
|---|---|---|---|
| capacity | Integer | 25 | The current number of slots in the pool to hold elements that are not in use. |
| detachedWashes | Long | 23 | The number of elements initialized by the detached pool washer thread. |
| evicts | Long | 22 | The number of elements that have been evicted from the pool because the pool doesn't have capacity. |
| gets | Long | 18 | The number of times an element has been requested from the pool. |
| growths | Long | 21 | The number of times the pool capacity has been increased to accomodate free elements. |
| hits | Long | 19 | The number of times an element has been requested from the pool without needing to allocate a new object. |
| key | String | 16 | The name of the pool. |
| maxCapacity | Integer | 27 | The maximum size of the pool. |
| misses | Long | 20 | The number of times an element has been requested from the pool which required allocating a new object. |
| preallocated | Integer | 26 | The number of elements initially preallocated in the pool. |
| puts | Long | 17 | The number of times an element has been put (returned) to the pool. |
| size | Integer | 24 |
The number of elements currently available in the pool to satisfy gets.
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them. |
| Modifier and Type | Class and Description |
|---|---|
static class |
SrvMonPoolStats.Field
The SrvMonPoolStats xbuf field (used internally when this entity is used as a field of another entity).
|
static class |
SrvMonPoolStats.ListField
The SrvMonPoolStats list field (used internally when this entity is used as an array field of another entity).
|
| Modifier and Type | Field and Description |
|---|---|
static SrvMonPoolStats[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.
|
| Constructor and Description |
|---|
SrvMonPoolStats() |
SrvMonPoolStats(int initialBackingBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
SrvMonPoolStats |
acquire() |
void |
clearCapacity()
Clears the value of 'capacity'.
|
void |
clearContent() |
void |
clearDetachedWashes()
Clears the value of 'detachedWashes'.
|
void |
clearEvicts()
Clears the value of 'evicts'.
|
void |
clearGets()
Clears the value of 'gets'.
|
void |
clearGrowths()
Clears the value of 'growths'.
|
void |
clearHits()
Clears the value of 'hits'.
|
void |
clearKey()
Clears the value of 'key'.
|
void |
clearMaxCapacity()
Clears the value of 'maxCapacity'.
|
void |
clearMisses()
Clears the value of 'misses'.
|
void |
clearPreallocated()
Clears the value of 'preallocated'.
|
void |
clearPuts()
Clears the value of 'puts'.
|
void |
clearSize()
Clears the value of 'size'.
|
void |
clearXRogType() |
Object |
clone()
Creates a clone of this object.
|
SrvMonPoolStats |
copy()
Creates a copy of this SrvMonPoolStats.
|
void |
copyInto(SrvMonPoolStats copy)
Copies the contents of this SrvMonPoolStats into the target.
|
static SrvMonPoolStats |
create() |
static SrvMonPoolStats |
createFrom(byte[] serializedContainer) |
static SrvMonPoolStats |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
static SrvMonPoolStats |
createFromSerializedXbufContainer(byte[] serializedContainer) |
static SrvMonPoolStats |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
static com.neeve.xbuf.XbufSchema |
createSchema() |
SrvMonPoolStats |
deserializeFromByteArray(byte[] array) |
SrvMonPoolStats |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonPoolStats |
deserializeFromByteBuffer(ByteBuffer buffer) |
SrvMonPoolStats |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonPoolStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length) |
SrvMonPoolStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonPoolStats |
deserializeFromNative(long address,
int offset,
int length) |
SrvMonPoolStats |
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() |
static com.neeve.xbuf.XbufDesyncPolicy |
getDesyncPolicy() |
long |
getDetachedWashes()
Gets the value of 'detachedWashes'.
|
Long |
getDetachedWashesAsObject()
Gets the value of 'detachedWashes'.
|
com.neeve.xbuf.XbufVariableLongField |
getDetachedWashesField() |
static int |
getDetachedWashesFieldId() |
long |
getEvicts()
Gets the value of 'evicts'.
|
Long |
getEvictsAsObject()
Gets the value of 'evicts'.
|
com.neeve.xbuf.XbufVariableLongField |
getEvictsField() |
static int |
getEvictsFieldId() |
long |
getGets()
Gets the value of 'gets'.
|
Long |
getGetsAsObject()
Gets the value of 'gets'.
|
com.neeve.xbuf.XbufVariableLongField |
getGetsField() |
static int |
getGetsFieldId() |
long |
getGrowths()
Gets the value of 'growths'.
|
Long |
getGrowthsAsObject()
Gets the value of 'growths'.
|
com.neeve.xbuf.XbufVariableLongField |
getGrowthsField() |
static int |
getGrowthsFieldId() |
long |
getHits()
Gets the value of 'hits'.
|
Long |
getHitsAsObject()
Gets the value of 'hits'.
|
com.neeve.xbuf.XbufVariableLongField |
getHitsField() |
static int |
getHitsFieldId() |
boolean |
getIsReadOnly() |
String |
getKey()
Gets the value of 'key'.
|
com.neeve.xbuf.XbufStringField |
getKeyField() |
static int |
getKeyFieldId() |
<T extends XString> |
getKeyTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getKeyTo(XString val)
Copies the value of 'key' into the provided XString.
|
XString |
getKeyUnsafe()
Gets the raw value of 'key'.
|
int |
getMaxCapacity()
Gets the value of 'maxCapacity'.
|
Integer |
getMaxCapacityAsObject()
Gets the value of 'maxCapacity'.
|
com.neeve.xbuf.XbufVariableIntField |
getMaxCapacityField() |
static int |
getMaxCapacityFieldId() |
long |
getMisses()
Gets the value of 'misses'.
|
Long |
getMissesAsObject()
Gets the value of 'misses'.
|
com.neeve.xbuf.XbufVariableLongField |
getMissesField() |
static int |
getMissesFieldId() |
int |
getOwnerCount() |
UtlPool<SrvMonPoolStats> |
getPool()
Get a pool item's pool.
|
int |
getPreallocated()
Gets the value of 'preallocated'.
|
Integer |
getPreallocatedAsObject()
Gets the value of 'preallocated'.
|
com.neeve.xbuf.XbufVariableIntField |
getPreallocatedField() |
static int |
getPreallocatedFieldId() |
long |
getPuts()
Gets the value of 'puts'.
|
Long |
getPutsAsObject()
Gets the value of 'puts'.
|
com.neeve.xbuf.XbufVariableLongField |
getPutsField() |
static int |
getPutsFieldId() |
int |
getSerializeToNativeLength() |
int |
getSize()
Gets the value of 'size'.
|
Integer |
getSizeAsObject()
Gets the value of 'size'.
|
com.neeve.xbuf.XbufVariableIntField |
getSizeField() |
static int |
getSizeFieldId() |
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list.
|
short |
getXRogType() |
Short |
getXRogTypeAsObject() |
com.neeve.xbuf.XbufVariableShortField |
getXRogTypeField() |
static int |
getXRogTypeFieldId() |
boolean |
hasCapacity()
Checks for the presence of 'capacity'.
|
boolean |
hasDetachedWashes()
Checks for the presence of 'detachedWashes'.
|
boolean |
hasEvicts()
Checks for the presence of 'evicts'.
|
boolean |
hasGets()
Checks for the presence of 'gets'.
|
boolean |
hasGrowths()
Checks for the presence of 'growths'.
|
boolean |
hasHits()
Checks for the presence of 'hits'.
|
boolean |
hasKey()
Checks for the presence of 'key'.
|
boolean |
hasMaxCapacity()
Checks for the presence of 'maxCapacity'.
|
boolean |
hasMisses()
Checks for the presence of 'misses'.
|
boolean |
hasPreallocated()
Checks for the presence of 'preallocated'.
|
boolean |
hasPuts()
Checks for the presence of 'puts'.
|
boolean |
hasSize()
Checks for the presence of 'size'.
|
boolean |
hasXRogType() |
SrvMonPoolStats |
init()
Initialize an item.
|
boolean |
isBufferBacked() |
boolean |
isDirty() |
boolean |
isReferenceCounted() |
boolean |
isValid()
Tests if this object has any validation errors.
|
void |
lendKey(XString val)
Lends the value of 'key' to this object.
|
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) |
static void |
setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val) |
void |
setDetachedWashes(long val)
Sets the value of 'detachedWashes'.
|
void |
setDetachedWashesAsObject(Long val)
Sets the value of 'detachedWashes'.
|
void |
setDetachedWashesFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setEvicts(long val)
Sets the value of 'evicts'.
|
void |
setEvictsAsObject(Long val)
Sets the value of 'evicts'.
|
void |
setEvictsFrom(com.neeve.xbuf.XbufVariableLongField val) |
static void |
setFieldInterest(List<Integer> fieldIds) |
void |
setGets(long val)
Sets the value of 'gets'.
|
void |
setGetsAsObject(Long val)
Sets the value of 'gets'.
|
void |
setGetsFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setGrowths(long val)
Sets the value of 'growths'.
|
void |
setGrowthsAsObject(Long val)
Sets the value of 'growths'.
|
void |
setGrowthsFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setHits(long val)
Sets the value of 'hits'.
|
void |
setHitsAsObject(Long val)
Sets the value of 'hits'.
|
void |
setHitsFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setKey(String val)
Sets the value of 'key'.
|
void |
setKeyFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setKeyFrom(com.neeve.xbuf.XbufStringField val) |
void |
setKeyFrom(XString val)
Copies the provided XString value into this object's 'key'.
|
void |
setMaxCapacity(int val)
Sets the value of 'maxCapacity'.
|
void |
setMaxCapacityAsObject(Integer val)
Sets the value of 'maxCapacity'.
|
void |
setMaxCapacityFrom(com.neeve.xbuf.XbufVariableIntField val) |
void |
setMisses(long val)
Sets the value of 'misses'.
|
void |
setMissesAsObject(Long val)
Sets the value of 'misses'.
|
void |
setMissesFrom(com.neeve.xbuf.XbufVariableLongField val) |
SrvMonPoolStats |
setPool(UtlPool<SrvMonPoolStats> pool)
Set a pool item's pool.
|
void |
setPreallocated(int val)
Sets the value of 'preallocated'.
|
void |
setPreallocatedAsObject(Integer val)
Sets the value of 'preallocated'.
|
void |
setPreallocatedFrom(com.neeve.xbuf.XbufVariableIntField val) |
void |
setPreserializedFields(PktBuffer buffer) |
void |
setPuts(long val)
Sets the value of 'puts'.
|
void |
setPutsAsObject(Long val)
Sets the value of 'puts'.
|
void |
setPutsFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setSize(int val)
Sets the value of 'size'.
|
void |
setSizeAsObject(Integer val)
Sets the value of 'size'.
|
void |
setSizeFrom(com.neeve.xbuf.XbufVariableIntField val) |
void |
setXRogType(short val) |
void |
setXRogTypeAsObject(Short val) |
void |
setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val) |
void |
sync() |
void |
syncFieldBitmask() |
String |
toString() |
public static final SrvMonPoolStats[] EMPTY_ARRAY
public SrvMonPoolStats()
public SrvMonPoolStats(int initialBackingBufferSize)
public static SrvMonPoolStats create()
public static SrvMonPoolStats createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonPoolStats createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonPoolStats createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonPoolStats 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 getPutsFieldId()
public final void setPuts(long val)
ISrvMonPoolStatssetPuts in interface ISrvMonPoolStatsval - The value to set.public final void setPutsAsObject(Long val)
ISrvMonPoolStatssetPutsAsObject in interface ISrvMonPoolStatsval - The value to set.public final long getPuts()
ISrvMonPoolStatsgetPuts in interface ISrvMonPoolStatspublic final Long getPutsAsObject()
ISrvMonPoolStatsgetPutsAsObject in interface ISrvMonPoolStatspublic final void setPutsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getPutsField()
public final boolean hasPuts()
ISrvMonPoolStatshasPuts in interface ISrvMonPoolStatsISrvMonPoolStats.getPuts()public final void clearPuts()
ISrvMonPoolStatsclearPuts in interface ISrvMonPoolStatsISrvMonPoolStats.setPuts(long)public static final int getGetsFieldId()
public final void setGets(long val)
ISrvMonPoolStatssetGets in interface ISrvMonPoolStatsval - The value to set.public final void setGetsAsObject(Long val)
ISrvMonPoolStatssetGetsAsObject in interface ISrvMonPoolStatsval - The value to set.public final long getGets()
ISrvMonPoolStatsgetGets in interface ISrvMonPoolStatspublic final Long getGetsAsObject()
ISrvMonPoolStatsgetGetsAsObject in interface ISrvMonPoolStatspublic final void setGetsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getGetsField()
public final boolean hasGets()
ISrvMonPoolStatshasGets in interface ISrvMonPoolStatsISrvMonPoolStats.getGets()public final void clearGets()
ISrvMonPoolStatsclearGets in interface ISrvMonPoolStatsISrvMonPoolStats.setGets(long)public static final int getHitsFieldId()
public final void setHits(long val)
ISrvMonPoolStatssetHits in interface ISrvMonPoolStatsval - The value to set.public final void setHitsAsObject(Long val)
ISrvMonPoolStatssetHitsAsObject in interface ISrvMonPoolStatsval - The value to set.public final long getHits()
ISrvMonPoolStatsgetHits in interface ISrvMonPoolStatspublic final Long getHitsAsObject()
ISrvMonPoolStatsgetHitsAsObject in interface ISrvMonPoolStatspublic final void setHitsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getHitsField()
public final boolean hasHits()
ISrvMonPoolStatshasHits in interface ISrvMonPoolStatsISrvMonPoolStats.getHits()public final void clearHits()
ISrvMonPoolStatsclearHits in interface ISrvMonPoolStatsISrvMonPoolStats.setHits(long)public static final int getMissesFieldId()
public final void setMisses(long val)
ISrvMonPoolStatssetMisses in interface ISrvMonPoolStatsval - The value to set.public final void setMissesAsObject(Long val)
ISrvMonPoolStatssetMissesAsObject in interface ISrvMonPoolStatsval - The value to set.public final long getMisses()
ISrvMonPoolStatsgetMisses in interface ISrvMonPoolStatspublic final Long getMissesAsObject()
ISrvMonPoolStatsgetMissesAsObject in interface ISrvMonPoolStatspublic final void setMissesFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getMissesField()
public final boolean hasMisses()
ISrvMonPoolStatshasMisses in interface ISrvMonPoolStatsISrvMonPoolStats.getMisses()public final void clearMisses()
ISrvMonPoolStatsclearMisses in interface ISrvMonPoolStatsISrvMonPoolStats.setMisses(long)public static final int getGrowthsFieldId()
public final void setGrowths(long val)
ISrvMonPoolStatssetGrowths in interface ISrvMonPoolStatsval - The value to set.public final void setGrowthsAsObject(Long val)
ISrvMonPoolStatssetGrowthsAsObject in interface ISrvMonPoolStatsval - The value to set.public final long getGrowths()
ISrvMonPoolStatsgetGrowths in interface ISrvMonPoolStatspublic final Long getGrowthsAsObject()
ISrvMonPoolStatsgetGrowthsAsObject in interface ISrvMonPoolStatspublic final void setGrowthsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getGrowthsField()
public final boolean hasGrowths()
ISrvMonPoolStatshasGrowths in interface ISrvMonPoolStatsISrvMonPoolStats.getGrowths()public final void clearGrowths()
ISrvMonPoolStatsclearGrowths in interface ISrvMonPoolStatsISrvMonPoolStats.setGrowths(long)public static final int getEvictsFieldId()
public final void setEvicts(long val)
ISrvMonPoolStatssetEvicts in interface ISrvMonPoolStatsval - The value to set.public final void setEvictsAsObject(Long val)
ISrvMonPoolStatssetEvictsAsObject in interface ISrvMonPoolStatsval - The value to set.public final long getEvicts()
ISrvMonPoolStatsgetEvicts in interface ISrvMonPoolStatspublic final Long getEvictsAsObject()
ISrvMonPoolStatsgetEvictsAsObject in interface ISrvMonPoolStatspublic final void setEvictsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getEvictsField()
public final boolean hasEvicts()
ISrvMonPoolStatshasEvicts in interface ISrvMonPoolStatsISrvMonPoolStats.getEvicts()public final void clearEvicts()
ISrvMonPoolStatsclearEvicts in interface ISrvMonPoolStatsISrvMonPoolStats.setEvicts(long)public static final int getDetachedWashesFieldId()
public final void setDetachedWashes(long val)
ISrvMonPoolStatssetDetachedWashes in interface ISrvMonPoolStatsval - The value to set.public final void setDetachedWashesAsObject(Long val)
ISrvMonPoolStatssetDetachedWashesAsObject in interface ISrvMonPoolStatsval - The value to set.public final long getDetachedWashes()
ISrvMonPoolStatsgetDetachedWashes in interface ISrvMonPoolStatspublic final Long getDetachedWashesAsObject()
ISrvMonPoolStatsgetDetachedWashesAsObject in interface ISrvMonPoolStatspublic final void setDetachedWashesFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getDetachedWashesField()
public final boolean hasDetachedWashes()
ISrvMonPoolStatshasDetachedWashes in interface ISrvMonPoolStatsISrvMonPoolStats.getDetachedWashes()public final void clearDetachedWashes()
ISrvMonPoolStatsclearDetachedWashes in interface ISrvMonPoolStatsISrvMonPoolStats.setDetachedWashes(long)public static final int getSizeFieldId()
public final void setSize(int val)
ISrvMonPoolStatsNote that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
setSize in interface ISrvMonPoolStatsval - The value to set.public final void setSizeAsObject(Integer val)
ISrvMonPoolStatsNote that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
setSizeAsObject in interface ISrvMonPoolStatsval - The value to set.public final int getSize()
ISrvMonPoolStatsNote that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
getSize in interface ISrvMonPoolStatspublic final Integer getSizeAsObject()
ISrvMonPoolStatsNote that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
getSizeAsObject in interface ISrvMonPoolStatspublic final void setSizeFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getSizeField()
public final boolean hasSize()
ISrvMonPoolStatsNote that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
hasSize in interface ISrvMonPoolStatsISrvMonPoolStats.getSize()public final void clearSize()
ISrvMonPoolStatsNote that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
clearSize in interface ISrvMonPoolStatsISrvMonPoolStats.setSize(int)public static final int getCapacityFieldId()
public final void setCapacity(int val)
ISrvMonPoolStatssetCapacity in interface ISrvMonPoolStatsval - The value to set.public final void setCapacityAsObject(Integer val)
ISrvMonPoolStatssetCapacityAsObject in interface ISrvMonPoolStatsval - The value to set.public final int getCapacity()
ISrvMonPoolStatsgetCapacity in interface ISrvMonPoolStatspublic final Integer getCapacityAsObject()
ISrvMonPoolStatsgetCapacityAsObject in interface ISrvMonPoolStatspublic final void setCapacityFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getCapacityField()
public final boolean hasCapacity()
ISrvMonPoolStatshasCapacity in interface ISrvMonPoolStatsISrvMonPoolStats.getCapacity()public final void clearCapacity()
ISrvMonPoolStatsclearCapacity in interface ISrvMonPoolStatsISrvMonPoolStats.setCapacity(int)public static final int getPreallocatedFieldId()
public final void setPreallocated(int val)
ISrvMonPoolStatssetPreallocated in interface ISrvMonPoolStatsval - The value to set.public final void setPreallocatedAsObject(Integer val)
ISrvMonPoolStatssetPreallocatedAsObject in interface ISrvMonPoolStatsval - The value to set.public final int getPreallocated()
ISrvMonPoolStatsgetPreallocated in interface ISrvMonPoolStatspublic final Integer getPreallocatedAsObject()
ISrvMonPoolStatsgetPreallocatedAsObject in interface ISrvMonPoolStatspublic final void setPreallocatedFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getPreallocatedField()
public final boolean hasPreallocated()
ISrvMonPoolStatshasPreallocated in interface ISrvMonPoolStatsISrvMonPoolStats.getPreallocated()public final void clearPreallocated()
ISrvMonPoolStatsclearPreallocated in interface ISrvMonPoolStatsISrvMonPoolStats.setPreallocated(int)public static final int getMaxCapacityFieldId()
public final void setMaxCapacity(int val)
ISrvMonPoolStatssetMaxCapacity in interface ISrvMonPoolStatsval - The value to set.public final void setMaxCapacityAsObject(Integer val)
ISrvMonPoolStatssetMaxCapacityAsObject in interface ISrvMonPoolStatsval - The value to set.public final int getMaxCapacity()
ISrvMonPoolStatsgetMaxCapacity in interface ISrvMonPoolStatspublic final Integer getMaxCapacityAsObject()
ISrvMonPoolStatsgetMaxCapacityAsObject in interface ISrvMonPoolStatspublic final void setMaxCapacityFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getMaxCapacityField()
public final boolean hasMaxCapacity()
ISrvMonPoolStatshasMaxCapacity in interface ISrvMonPoolStatsISrvMonPoolStats.getMaxCapacity()public final void clearMaxCapacity()
ISrvMonPoolStatsclearMaxCapacity in interface ISrvMonPoolStatsISrvMonPoolStats.setMaxCapacity(int)public static final int getKeyFieldId()
public final void setKey(String val)
ISrvMonPoolStatssetKey in interface ISrvMonPoolStatsval - The value to set.public final String getKey()
ISrvMonPoolStatsgetKey in interface ISrvMonPoolStatspublic final void lendKey(XString val)
ISrvMonPoolStatsThis method is equivalent to setKey except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendKey in interface ISrvMonPoolStatsval - The value to set.public final void setKeyFrom(long val)
ISrvMonPoolStats
NOTE:
This is the same as calling ISrvMonPoolStats.setKey(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setKeyFrom in interface ISrvMonPoolStatspublic final <T extends XString> T getKeyTo(XString.Factory<T> factory)
ISrvMonPoolStats
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getKeyTo in interface ISrvMonPoolStatsfactory - The factory from which to get the XString to copy into and returnnull.public final void setKeyFrom(XString val)
ISrvMonPoolStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonPoolStats.setKey(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setKeyFrom in interface ISrvMonPoolStatspublic final void getKeyTo(XString val)
ISrvMonPoolStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonPoolStats.getKey() bec
because it can avoid decoding the value into an String.
getKeyTo in interface ISrvMonPoolStatsISrvMonPoolStats.getKey()public final XString getKeyUnsafe()
ISrvMonPoolStats
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getKeyUnsafe in interface ISrvMonPoolStatsISrvMonPoolStats.getKey()public final void setKeyFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getKeyField()
public final boolean hasKey()
ISrvMonPoolStatshasKey in interface ISrvMonPoolStatsISrvMonPoolStats.getKey()public final void clearKey()
ISrvMonPoolStatsclearKey in interface ISrvMonPoolStatsISrvMonPoolStats.setKey(String)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 SrvMonPoolStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonPoolStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonPoolStats deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonPoolStats deserializeFromByteArray(byte[] array)
public final SrvMonPoolStats deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonPoolStats deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonPoolStats deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonPoolStats 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 SrvMonPoolStats 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<SrvMonPoolStats>public final SrvMonPoolStats setPool(UtlPool<SrvMonPoolStats> 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<SrvMonPoolStats>public final UtlPool<SrvMonPoolStats> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)
getPool in interface UtlPool.Item<SrvMonPoolStats>UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)public final boolean isReferenceCounted()
public final SrvMonPoolStats acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy() method in that:
public final SrvMonPoolStats 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 SrvMonPoolStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonPoolStats is read only.
public final void copyInto(SrvMonPoolStats 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 SrvMonPoolStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonPoolStats 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.