|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.server.mon.SrvMonAppEventMultiplexerStats
@Generated(value="com.neeve.adm.AdmXbufGenerator", date="Wed Mar 28 10:54:31 EDT 2018") @AdmGenerated(encoding="Xbuf", compatLevel="3.8.0", admVersion="nvx-adm v3.7.265 (build 0)", date="3/28/18 10:54 AM", buildInfo="nvx-talon-3.7.265 (nvx-codegen-plugin)") @AdmFactoryInfo(factoryClass=SrvMonFactory.class, vfid=32, ofid=32, typeId=208) public final class SrvMonAppEventMultiplexerStats
Stats relating to an application's Aep Engine input queue.
The engine input queue holds stats that relate to how long events such as messages or acks are enqueued waiting for processing by the application's Aep Engine. Events enqueued for an engine go through two levels of queue to promote fairness and facilitate event scheduled. An event is first enqueued in a feeder queue private to the thread enqueueing it and then is promoted into the the engine's input disruptor.
Nested Class Summary | |
---|---|
static class |
SrvMonAppEventMultiplexerStats.Field
The SrvMonAppEventMultiplexerStats xbuf field (used internally when this entity is used as a field of another entity). |
static class |
SrvMonAppEventMultiplexerStats.ListField
The SrvMonAppEventMultiplexerStats list field (used internally when this entity is used as an array field of another entity). |
Field Summary | |
---|---|
static SrvMonAppEventMultiplexerStats[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type. |
Constructor Summary | |
---|---|
SrvMonAppEventMultiplexerStats()
|
|
SrvMonAppEventMultiplexerStats(int initialBackingBufferSize)
|
Method Summary | |
---|---|
SrvMonAppEventMultiplexerStats |
acquire()
|
void |
addFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats val)
Adds the provided value to the list of 'feederQueueStats' values. |
void |
clearContent()
|
void |
clearDisruptorStats()
Clears the value of 'disruptorStats' Field Description Stats relating to events' passage through the engine's input disruptor |
void |
clearFeederQueueStats()
Clears the value of 'feederQueueStats' Field Description Stats relating to events' passage through the engine's input multiplexer feeder queues. |
void |
clearLastDecongested()
Clears the value of 'lastDecongested' Field Description The last feeder queue decongested. |
void |
clearMaxConcurrency()
Clears the value of 'maxConcurrency' Field Description The maximum number of feeder queue supported by the multiplexer. |
void |
clearScheduleQueueSize()
Clears the value of 'scheduleQueueSize' Field Description The number of scheduled events awaiting dispatch. |
void |
clearXRogType()
|
Object |
clone()
Creates a clone of this object. |
SrvMonAppEventMultiplexerStats |
copy()
Creates a copy of this SrvMonAppEventMultiplexerStats. |
void |
copyInto(SrvMonAppEventMultiplexerStats copy)
Copies the contents of this SrvMonAppEventMultiplexerStats into the target. |
static SrvMonAppEventMultiplexerStats |
create()
|
static SrvMonAppEventMultiplexerStats |
createFrom(byte[] serializedContainer)
|
static SrvMonAppEventMultiplexerStats |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
static SrvMonAppEventMultiplexerStats |
createFromSerializedXbufContainer(byte[] serializedContainer)
|
static SrvMonAppEventMultiplexerStats |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
static com.neeve.xbuf.XbufSchema |
createSchema()
|
SrvMonAppEventMultiplexerStats |
deserializeFromByteArray(byte[] array)
|
SrvMonAppEventMultiplexerStats |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
SrvMonAppEventMultiplexerStats |
deserializeFromByteBuffer(ByteBuffer buffer)
|
SrvMonAppEventMultiplexerStats |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
SrvMonAppEventMultiplexerStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length)
|
SrvMonAppEventMultiplexerStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
SrvMonAppEventMultiplexerStats |
deserializeFromNative(long address,
int offset,
int length)
|
SrvMonAppEventMultiplexerStats |
deserializeFromNative(long address,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
int |
desync(PktBuffer buffer,
int pos,
boolean frameOnly)
|
void |
desyncFieldBitmask()
|
void |
dispose()
|
PktBuffer |
getBackingBuffer()
|
static com.neeve.xbuf.XbufDesyncPolicy |
getDesyncPolicy()
|
SrvMonDisruptorStats |
getDisruptorStats()
Gets the value of 'disruptorStats' Field Description Stats relating to events' passage through the engine's input disruptor |
static int |
getDisruptorStatsFieldId()
Get the field id for 'disruptorStats' This method can be used to set field interests. |
void |
getDisruptorStatsTo(SrvMonDisruptorStats to)
Copies the value of SrvMonDisruptorStats into the provided value. |
SrvMonAppEventMultiplexerFeederQueueStats[] |
getFeederQueueStats()
Gets the value of 'feederQueueStats' If the field is not set this method will return null . |
SrvMonAppEventMultiplexerFeederQueueStats[] |
getFeederQueueStatsEmptyIfNull()
Gets the value of 'feederQueueStats' or an empty array if the value is null or not set. |
static int |
getFeederQueueStatsFieldId()
Get the field id for 'feederQueueStats' This method can be used to set field interests. |
XIterator<SrvMonAppEventMultiplexerFeederQueueStats> |
getFeederQueueStatsIterator()
Gets the value of 'feederQueueStats' as iterator of values. |
boolean |
getIsReadOnly()
|
int |
getLastDecongested()
Gets the value of 'lastDecongested' Field Description The last feeder queue decongested. |
com.neeve.xbuf.XbufVariableIntField |
getLastDecongestedField()
|
static int |
getLastDecongestedFieldId()
Get the field id for 'lastDecongested' This method can be used to set field interests. |
int |
getMaxConcurrency()
Gets the value of 'maxConcurrency' Field Description The maximum number of feeder queue supported by the multiplexer. |
com.neeve.xbuf.XbufVariableIntField |
getMaxConcurrencyField()
|
static int |
getMaxConcurrencyFieldId()
Get the field id for 'maxConcurrency' This method can be used to set field interests. |
int |
getOwnerCount()
|
UtlPool<SrvMonAppEventMultiplexerStats> |
getPool()
Get a pool item's pool. |
int |
getScheduleQueueSize()
Gets the value of 'scheduleQueueSize' Field Description The number of scheduled events awaiting dispatch. |
com.neeve.xbuf.XbufVariableIntField |
getScheduleQueueSizeField()
|
static int |
getScheduleQueueSizeFieldId()
Get the field id for 'scheduleQueueSize' This method can be used to set field interests. |
int |
getSerializeToNativeLength()
|
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list. |
short |
getXRogType()
|
com.neeve.xbuf.XbufVariableShortField |
getXRogTypeField()
|
static int |
getXRogTypeFieldId()
Get the field id for 'xRogType' This method can be used to set field interests. |
boolean |
hasDisruptorStats()
Checks for the presence of 'disruptorStats' Field Description Stats relating to events' passage through the engine's input disruptor |
boolean |
hasLastDecongested()
Checks for the presence of 'lastDecongested' Field Description The last feeder queue decongested. |
boolean |
hasMaxConcurrency()
Checks for the presence of 'maxConcurrency' Field Description The maximum number of feeder queue supported by the multiplexer. |
boolean |
hasScheduleQueueSize()
Checks for the presence of 'scheduleQueueSize' Field Description The number of scheduled events awaiting dispatch. |
boolean |
hasXRogType()
|
SrvMonAppEventMultiplexerStats |
init()
Initialize an item. |
boolean |
isBufferBacked()
|
boolean |
isDirty()
|
boolean |
isReferenceCounted()
|
boolean |
isValid()
Tests if this object has any validation errors. |
void |
lendDisruptorStats(SrvMonDisruptorStats val)
'Lends' a reference of the SrvMonDisruptorStats to the message for this field. |
void |
lendFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats val)
Adds the provided value to the list of 'feederQueueStats' values and acquires a reference to it. |
void |
lendFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats[] val)
Lends the value of 'feederQueueStats' Field Description Stats relating to events' passage through the engine's input multiplexer feeder queues. |
void |
lendFeederQueueStatsFrom(XIterator<SrvMonAppEventMultiplexerFeederQueueStats> val)
Sets the value of 'feederQueueStats' by lending the values from the provided iterator. |
static void |
optimizeFor(int val)
|
byte[] |
serializeToByteArray()
|
ByteBuffer |
serializeToByteBuffer()
|
com.neeve.io.IOBuffer |
serializeToIOBuffer(boolean useNative)
|
int |
serializeToNative(long address,
int addressOffset)
|
void |
setAsReadOnly()
|
static void |
setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
|
void |
setDisruptorStats(SrvMonDisruptorStats val)
Sets the value of 'disruptorStats' Field Description Stats relating to events' passage through the engine's input disruptor |
void |
setFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats[] val)
Sets the value of 'feederQueueStats' Field Description Stats relating to events' passage through the engine's input multiplexer feeder queues. |
void |
setFeederQueueStatsFrom(XIterator<SrvMonAppEventMultiplexerFeederQueueStats> val)
Sets the value of 'feederQueueStats' using the values from the provided iterator. |
static void |
setFieldInterest(List<Integer> fieldIds)
|
void |
setLastDecongested(int val)
Sets the value of 'lastDecongested' Field Description The last feeder queue decongested. |
void |
setLastDecongestedFrom(com.neeve.xbuf.XbufVariableIntField val)
|
void |
setMaxConcurrency(int val)
Sets the value of 'maxConcurrency' Field Description The maximum number of feeder queue supported by the multiplexer. |
void |
setMaxConcurrencyFrom(com.neeve.xbuf.XbufVariableIntField val)
|
SrvMonAppEventMultiplexerStats |
setPool(UtlPool<SrvMonAppEventMultiplexerStats> pool)
Set a pool item's pool. |
void |
setScheduleQueueSize(int val)
Sets the value of 'scheduleQueueSize' Field Description The number of scheduled events awaiting dispatch. |
void |
setScheduleQueueSizeFrom(com.neeve.xbuf.XbufVariableIntField val)
|
void |
setXRogType(short val)
|
void |
setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
|
void |
sync()
|
void |
syncFieldBitmask()
|
SrvMonDisruptorStats |
takeDisruptorStats()
'Takes' a reference to the disruptorStats field from the message. |
SrvMonAppEventMultiplexerFeederQueueStats[] |
takeFeederQueueStats()
Takes the value of 'feederQueueStats' Field Description Stats relating to events' passage through the engine's input multiplexer feeder queues. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SrvMonAppEventMultiplexerStats[] EMPTY_ARRAY
Constructor Detail |
---|
public SrvMonAppEventMultiplexerStats()
public SrvMonAppEventMultiplexerStats(int initialBackingBufferSize)
Method Detail |
---|
public static SrvMonAppEventMultiplexerStats create()
public static SrvMonAppEventMultiplexerStats createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonAppEventMultiplexerStats createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonAppEventMultiplexerStats createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonAppEventMultiplexerStats createFrom(byte[] serializedContainer)
public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
public static final void setFieldInterest(List<Integer> fieldIds)
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 static final int getXRogTypeFieldId()
This method can be used to set field interests.
getXRogType()
public final void setXRogType(short val)
public final short getXRogType()
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 getLastDecongestedFieldId()
This method can be used to set field interests.
getLastDecongested()
public final void setLastDecongested(int val)
ISrvMonAppEventMultiplexerStats
setLastDecongested
in interface ISrvMonAppEventMultiplexerStats
val
- The value to set.public final int getLastDecongested()
ISrvMonAppEventMultiplexerStats
getLastDecongested
in interface ISrvMonAppEventMultiplexerStats
public final void setLastDecongestedFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getLastDecongestedField()
public final boolean hasLastDecongested()
ISrvMonAppEventMultiplexerStats
hasLastDecongested
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.getLastDecongested()
public final void clearLastDecongested()
ISrvMonAppEventMultiplexerStats
clearLastDecongested
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.setLastDecongested(int)
public static final int getMaxConcurrencyFieldId()
This method can be used to set field interests.
getMaxConcurrency()
public final void setMaxConcurrency(int val)
ISrvMonAppEventMultiplexerStats
setMaxConcurrency
in interface ISrvMonAppEventMultiplexerStats
val
- The value to set.public final int getMaxConcurrency()
ISrvMonAppEventMultiplexerStats
getMaxConcurrency
in interface ISrvMonAppEventMultiplexerStats
public final void setMaxConcurrencyFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getMaxConcurrencyField()
public final boolean hasMaxConcurrency()
ISrvMonAppEventMultiplexerStats
hasMaxConcurrency
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.getMaxConcurrency()
public final void clearMaxConcurrency()
ISrvMonAppEventMultiplexerStats
clearMaxConcurrency
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.setMaxConcurrency(int)
public static final int getScheduleQueueSizeFieldId()
This method can be used to set field interests.
getScheduleQueueSize()
public final void setScheduleQueueSize(int val)
ISrvMonAppEventMultiplexerStats
setScheduleQueueSize
in interface ISrvMonAppEventMultiplexerStats
val
- The value to set.public final int getScheduleQueueSize()
ISrvMonAppEventMultiplexerStats
getScheduleQueueSize
in interface ISrvMonAppEventMultiplexerStats
public final void setScheduleQueueSizeFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getScheduleQueueSizeField()
public final boolean hasScheduleQueueSize()
ISrvMonAppEventMultiplexerStats
hasScheduleQueueSize
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.getScheduleQueueSize()
public final void clearScheduleQueueSize()
ISrvMonAppEventMultiplexerStats
clearScheduleQueueSize
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.setScheduleQueueSize(int)
public static final int getDisruptorStatsFieldId()
This method can be used to set field interests.
getDisruptorStats()
public final void setDisruptorStats(SrvMonDisruptorStats val)
ISrvMonAppEventMultiplexerStats
setDisruptorStats
in interface ISrvMonAppEventMultiplexerStats
val
- The value to set.public final void lendDisruptorStats(SrvMonDisruptorStats val)
ISrvMonAppEventMultiplexerStats
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.
lendDisruptorStats
in interface ISrvMonAppEventMultiplexerStats
val
- the value to 'lend' to lend.public final SrvMonDisruptorStats getDisruptorStats()
ISrvMonAppEventMultiplexerStats
getDisruptorStats
in interface ISrvMonAppEventMultiplexerStats
public final void getDisruptorStatsTo(SrvMonDisruptorStats to)
ISrvMonAppEventMultiplexerStats
IF the value is not set, then the contents of the provided SrvMonDisruptorStats are cleared.
getDisruptorStatsTo
in interface ISrvMonAppEventMultiplexerStats
to
- the value to copy intoSrvMonDisruptorStats.copyInto(SrvMonDisruptorStats)
public final SrvMonDisruptorStats takeDisruptorStats()
ISrvMonAppEventMultiplexerStats
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.
takeDisruptorStats
in interface ISrvMonAppEventMultiplexerStats
null
if the field is not set.public final boolean hasDisruptorStats()
ISrvMonAppEventMultiplexerStats
hasDisruptorStats
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.getDisruptorStats()
public final void clearDisruptorStats()
ISrvMonAppEventMultiplexerStats
clearDisruptorStats
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.setDisruptorStats(SrvMonDisruptorStats)
public static final int getFeederQueueStatsFieldId()
This method can be used to set field interests.
getFeederQueueStats()
public final void setFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats[] val)
ISrvMonAppEventMultiplexerStats
setFeederQueueStats
in interface ISrvMonAppEventMultiplexerStats
val
- The value to set.public final void setFeederQueueStatsFrom(XIterator<SrvMonAppEventMultiplexerFeederQueueStats> val)
ISrvMonAppEventMultiplexerStats
This method will call XIterator.toFirst()
before and after setting the values, meaning
that all values from the iterator will be set and the iterator will be reset on return.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'feederQueueStats' accessor can copy the values without iteration.
NOTE:
Passing a null
or empty list has the same affect as calling ISrvMonAppEventMultiplexerStats.setFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats[])
with
a value of null
.
setFeederQueueStatsFrom
in interface ISrvMonAppEventMultiplexerStats
val
- the values to set.public final void lendFeederQueueStatsFrom(XIterator<SrvMonAppEventMultiplexerFeederQueueStats> val)
ISrvMonAppEventMultiplexerStats
This method will call XIterator.toFirst()
before and after setting the values, meaning
that all values from the iterator will be set and the iterator will be reset on return.
This method will acquire references to each non null value in the provided iterator making it suitable for cases where the values come from another message that may be disposed.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'feederQueueStats' accessor can copy the values without iteration.
NOTE:
Passing a null
or empty list has the same affect as calling ISrvMonAppEventMultiplexerStats.setFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats[])
with
a value of null
.
lendFeederQueueStatsFrom
in interface ISrvMonAppEventMultiplexerStats
val
- the values to set.public final void lendFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats[] val)
ISrvMonAppEventMultiplexerStats
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.
lendFeederQueueStats
in interface ISrvMonAppEventMultiplexerStats
val
- the value to 'lend' to lend.public final void addFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats val)
ISrvMonAppEventMultiplexerStats
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'feederQueueStats' accessor can copy the values without iteration.
For objects generated with json encoding, or transactional state entities, using this method is currently efficient than doing a bulk set. For xbuf generated messages however, this method is optimized to directly serialize to an encoded backing buffer.
addFeederQueueStats
in interface ISrvMonAppEventMultiplexerStats
val
- the value to add.public final void lendFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats val)
ISrvMonAppEventMultiplexerStats
Lending of an added value is useful in cases where a field is being added from a source message to provide dispose of the source value when the source message is disposed.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'feederQueueStats' accessor can copy the values without iteration.
For objects generated with json encoding, or transactional state entities, using this method is currently efficient than doing a bulk set. For xbuf generated messages however, this method is optimized to directly serialize to an encoded backing buffer.
lendFeederQueueStats
in interface ISrvMonAppEventMultiplexerStats
val
- the value to add.public final SrvMonAppEventMultiplexerFeederQueueStats[] getFeederQueueStats()
ISrvMonAppEventMultiplexerStats
If the field is not set this method will return null
.
getFeederQueueStats
in interface ISrvMonAppEventMultiplexerStats
null
.public final SrvMonAppEventMultiplexerFeederQueueStats[] getFeederQueueStatsEmptyIfNull()
ISrvMonAppEventMultiplexerStats
null
or not set.
getFeederQueueStatsEmptyIfNull
in interface ISrvMonAppEventMultiplexerStats
null
if not set.ISrvMonAppEventMultiplexerStats.getFeederQueueStats()
public final XIterator<SrvMonAppEventMultiplexerFeederQueueStats> getFeederQueueStatsIterator()
ISrvMonAppEventMultiplexerStats
This method will always return a non null iterator value. The returned iterator is not threadsafe, and the caller may not hold on to it beyond the pooling lifespan of this object. Depending on the implementation, the same iterator instance may be returned by this object on each call to avoid garbage. Each time this method is called the iterator is reset by calling its toFirst() method. Callers should therefore be especially careful about calling this method while iterating on the iterator returned by this method.
The elements returned by this iterator are owned by and pooled along with this object. The caller. must call acquire() on each returned object that this object intends to keep beyond the lifespan. of this object (unless the element is lent to another object in which that object will acquire it then).
This method is zero garbage for Xbuf generated classes, and this method is optimized such that
passing the returned iterator to another object's setXXX(XIterator
getFeederQueueStatsIterator
in interface ISrvMonAppEventMultiplexerStats
public final SrvMonAppEventMultiplexerFeederQueueStats[] takeFeederQueueStats()
ISrvMonAppEventMultiplexerStats
NOTE:
A nested entity reference returned by ISrvMonAppEventMultiplexerStats.getFeederQueueStats()
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.
takeFeederQueueStats
in interface ISrvMonAppEventMultiplexerStats
null
if the field is not set.public final void clearFeederQueueStats()
ISrvMonAppEventMultiplexerStats
clearFeederQueueStats
in interface ISrvMonAppEventMultiplexerStats
ISrvMonAppEventMultiplexerStats.setFeederQueueStats(SrvMonAppEventMultiplexerFeederQueueStats[])
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 SrvMonAppEventMultiplexerStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonAppEventMultiplexerStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonAppEventMultiplexerStats deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonAppEventMultiplexerStats deserializeFromByteArray(byte[] array)
public final SrvMonAppEventMultiplexerStats deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonAppEventMultiplexerStats deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonAppEventMultiplexerStats deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonAppEventMultiplexerStats deserializeFromNative(long address, int offset, int length)
public final void sync()
public final int desync(PktBuffer buffer, int pos, boolean frameOnly)
desync
in interface com.neeve.xbuf.IXbufDesyncer
public final SrvMonAppEventMultiplexerStats init()
UtlPool.Item
This 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<SrvMonAppEventMultiplexerStats>
public final SrvMonAppEventMultiplexerStats setPool(UtlPool<SrvMonAppEventMultiplexerStats> pool)
UtlPool.Item
This 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<SrvMonAppEventMultiplexerStats>
public final UtlPool<SrvMonAppEventMultiplexerStats> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool
getPool
in interface UtlPool.Item<SrvMonAppEventMultiplexerStats>
UtlPool.Item.setPool(com.neeve.util.UtlPool)
public final boolean isReferenceCounted()
public final SrvMonAppEventMultiplexerStats acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy()
method in that:
clone
in class Object
public final SrvMonAppEventMultiplexerStats 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 SrvMonAppEventMultiplexerStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonAppEventMultiplexerStats is read only.
public final void copyInto(SrvMonAppEventMultiplexerStats 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 SrvMonAppEventMultiplexerStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonAppEventMultiplexerStats is read only.
copy
- The target into which to copy.public final boolean isValid()
IRogValidatable
isValid
in interface IRogValidatable
public final void getValidationErrors(List<XString> results, String errorPrefix)
IRogValidatable
getValidationErrors
in interface IRogValidatable
results
- 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.public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |