com.neeve.server.mon
Class SrvMonDisruptorStats

java.lang.Object
  extended by com.neeve.server.mon.SrvMonDisruptorStats
All Implemented Interfaces:
IRogValidatable, ISrvMonDisruptorStats, UtlPool.Item<SrvMonDisruptorStats>, com.neeve.xbuf.IXbufDesyncer

@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=201)
public final class SrvMonDisruptorStats
extends Object
implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonDisruptorStats>, ISrvMonDisruptorStats

Holds stats for a disruptor.


Nested Class Summary
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).
 
Field Summary
static SrvMonDisruptorStats[] EMPTY_ARRAY
          A preallocated empty array used to avoid garbage when returning empty arrays of this type.
 
Constructor Summary
SrvMonDisruptorStats()
           
SrvMonDisruptorStats(int initialBackingBufferSize)
           
 
Method Summary
 SrvMonDisruptorStats acquire()
           
 void clearCapacity()
          Clears the value of 'capacity' Field Description The size of the diruptor's ringbuffer
 void clearClaimStrategy()
          Clears the value of 'claimStrategy' Field Description The claim strategy used by threads inputing events to the disruptor
 void clearContent()
           
 void clearOfferToPollLatencies()
          Clears the value of 'offerToPollLatencies' Field Description Measures latency of events passing in the disruptor
 void clearRemaining()
          Clears the value of 'remaining' Field Description The number of free ringbuffer slots
 void clearWaitStrategy()
          Clears the value of 'waitStrategy' Field Description The claim strategy used by thread processing events in the disruptor
 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)
           
 void desyncFieldBitmask()
           
 void dispose()
           
 PktBuffer getBackingBuffer()
           
 int getCapacity()
          Gets the value of 'capacity' Field Description The size of the diruptor's ringbuffer
 com.neeve.xbuf.XbufVariableIntField getCapacityField()
           
static int getCapacityFieldId()
          Get the field id for 'capacity' This method can be used to set field interests.
 SrvMonDisruptorClaimStrategy getClaimStrategy()
          Gets the value of 'claimStrategy' Field Description The claim strategy used by threads inputing events to the disruptor
 com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorClaimStrategy> getClaimStrategyField()
           
static int getClaimStrategyFieldId()
          Get the field id for 'claimStrategy' This method can be used to set field interests.
static com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
           
 boolean getIsReadOnly()
           
 SrvMonIntSeries getOfferToPollLatencies()
          Gets the value of 'offerToPollLatencies' Field Description Measures latency of events passing in the disruptor
static int getOfferToPollLatenciesFieldId()
          Get the field id for 'offerToPollLatencies' This method can be used to set field interests.
 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' Field Description The number of free ringbuffer slots
 com.neeve.xbuf.XbufVariableIntField getRemainingField()
           
static int getRemainingFieldId()
          Get the field id for 'remaining' 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.
 SrvMonDisruptorWaitStrategy getWaitStrategy()
          Gets the value of 'waitStrategy' Field Description The claim strategy used by thread processing events in the disruptor
 com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorWaitStrategy> getWaitStrategyField()
           
static int getWaitStrategyFieldId()
          Get the field id for 'waitStrategy' This method can be used to set field interests.
 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 hasCapacity()
          Checks for the presence of 'capacity' Field Description The size of the diruptor's ringbuffer
 boolean hasClaimStrategy()
          Checks for the presence of 'claimStrategy' Field Description The claim strategy used by threads inputing events to the disruptor
 boolean hasOfferToPollLatencies()
          Checks for the presence of 'offerToPollLatencies' Field Description Measures latency of events passing in the disruptor
 boolean hasRemaining()
          Checks for the presence of 'remaining' Field Description The number of free ringbuffer slots
 boolean hasWaitStrategy()
          Checks for the presence of 'waitStrategy' Field Description The claim strategy used by thread processing events in the disruptor
 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' Field Description The size of the diruptor's ringbuffer
 void setCapacityFrom(com.neeve.xbuf.XbufVariableIntField val)
           
 void setClaimStrategy(SrvMonDisruptorClaimStrategy val)
          Sets the value of 'claimStrategy' Field Description The claim strategy used by threads inputing events to the disruptor
 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' Field Description Measures latency of events passing in the disruptor
 SrvMonDisruptorStats setPool(UtlPool<SrvMonDisruptorStats> pool)
          Set a pool item's pool.
 void setRemaining(int val)
          Sets the value of 'remaining' Field Description The number of free ringbuffer slots
 void setRemainingFrom(com.neeve.xbuf.XbufVariableIntField val)
           
 void setWaitStrategy(SrvMonDisruptorWaitStrategy val)
          Sets the value of 'waitStrategy' Field Description The claim strategy used by thread processing events in the disruptor
 void setWaitStrategyFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorWaitStrategy> val)
           
 void setXRogType(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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final SrvMonDisruptorStats[] EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.

Constructor Detail

SrvMonDisruptorStats

public SrvMonDisruptorStats()

SrvMonDisruptorStats

public SrvMonDisruptorStats(int initialBackingBufferSize)
Method Detail

create

public static SrvMonDisruptorStats create()

createFromSerializedXbufContainer

public static SrvMonDisruptorStats createFromSerializedXbufContainer(byte[] serializedContainer,
                                                                     com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

createFromSerializedXbufContainer

public static SrvMonDisruptorStats createFromSerializedXbufContainer(byte[] serializedContainer)

createFrom

public static SrvMonDisruptorStats createFrom(byte[] serializedContainer,
                                              com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

createFrom

public static SrvMonDisruptorStats createFrom(byte[] serializedContainer)

setDesyncPolicy

public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)

getDesyncPolicy

public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()

setFieldInterest

public static final void setFieldInterest(List<Integer> fieldIds)

clearContent

public final void clearContent()

syncFieldBitmask

public final void syncFieldBitmask()

desyncFieldBitmask

public final void desyncFieldBitmask()

getBackingBuffer

public final PktBuffer getBackingBuffer()

optimizeFor

public static final void optimizeFor(int val)

setAsReadOnly

public final void setAsReadOnly()

getIsReadOnly

public final boolean getIsReadOnly()

getXRogTypeFieldId

public static final int getXRogTypeFieldId()
Get the field id for 'xRogType'

This method can be used to set field interests.

See Also:
getXRogType()

setXRogType

public final void setXRogType(short val)

getXRogType

public final short getXRogType()

setXRogTypeFrom

public final void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)

getXRogTypeField

public final com.neeve.xbuf.XbufVariableShortField getXRogTypeField()

hasXRogType

public final boolean hasXRogType()

clearXRogType

public final void clearXRogType()

getCapacityFieldId

public static final int getCapacityFieldId()
Get the field id for 'capacity'

This method can be used to set field interests.

See Also:
getCapacity()

setCapacity

public final void setCapacity(int val)
Description copied from interface: ISrvMonDisruptorStats
Sets the value of 'capacity'

Field Description

The size of the diruptor's ringbuffer

Specified by:
setCapacity in interface ISrvMonDisruptorStats
Parameters:
val - The value to set.

getCapacity

public final int getCapacity()
Description copied from interface: ISrvMonDisruptorStats
Gets the value of 'capacity'

Field Description

The size of the diruptor's ringbuffer

Specified by:
getCapacity in interface ISrvMonDisruptorStats
Returns:
The size of the diruptor's ringbuffer

setCapacityFrom

public final void setCapacityFrom(com.neeve.xbuf.XbufVariableIntField val)

getCapacityField

public final com.neeve.xbuf.XbufVariableIntField getCapacityField()

hasCapacity

public final boolean hasCapacity()
Description copied from interface: ISrvMonDisruptorStats
Checks for the presence of 'capacity'

Field Description

The size of the diruptor's ringbuffer

Specified by:
hasCapacity in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.getCapacity()

clearCapacity

public final void clearCapacity()
Description copied from interface: ISrvMonDisruptorStats
Clears the value of 'capacity'

Field Description

The size of the diruptor's ringbuffer

Specified by:
clearCapacity in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.setCapacity(int)

getRemainingFieldId

public static final int getRemainingFieldId()
Get the field id for 'remaining'

This method can be used to set field interests.

See Also:
getRemaining()

setRemaining

public final void setRemaining(int val)
Description copied from interface: ISrvMonDisruptorStats
Sets the value of 'remaining'

Field Description

The number of free ringbuffer slots

Specified by:
setRemaining in interface ISrvMonDisruptorStats
Parameters:
val - The value to set.

getRemaining

public final int getRemaining()
Description copied from interface: ISrvMonDisruptorStats
Gets the value of 'remaining'

Field Description

The number of free ringbuffer slots

Specified by:
getRemaining in interface ISrvMonDisruptorStats
Returns:
The number of free ringbuffer slots

setRemainingFrom

public final void setRemainingFrom(com.neeve.xbuf.XbufVariableIntField val)

getRemainingField

public final com.neeve.xbuf.XbufVariableIntField getRemainingField()

hasRemaining

public final boolean hasRemaining()
Description copied from interface: ISrvMonDisruptorStats
Checks for the presence of 'remaining'

Field Description

The number of free ringbuffer slots

Specified by:
hasRemaining in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.getRemaining()

clearRemaining

public final void clearRemaining()
Description copied from interface: ISrvMonDisruptorStats
Clears the value of 'remaining'

Field Description

The number of free ringbuffer slots

Specified by:
clearRemaining in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.setRemaining(int)

getClaimStrategyFieldId

public static final int getClaimStrategyFieldId()
Get the field id for 'claimStrategy'

This method can be used to set field interests.

See Also:
getClaimStrategy()

setClaimStrategy

public final void setClaimStrategy(SrvMonDisruptorClaimStrategy val)
Description copied from interface: ISrvMonDisruptorStats
Sets the value of 'claimStrategy'

Field Description

The claim strategy used by threads inputing events to the disruptor

Specified by:
setClaimStrategy in interface ISrvMonDisruptorStats
Parameters:
val - The value to set.

setClaimStrategyFrom

public final void setClaimStrategyFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorClaimStrategy> val)

getClaimStrategyField

public final com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorClaimStrategy> getClaimStrategyField()

getClaimStrategy

public final SrvMonDisruptorClaimStrategy getClaimStrategy()
Description copied from interface: ISrvMonDisruptorStats
Gets the value of 'claimStrategy'

Field Description

The claim strategy used by threads inputing events to the disruptor

Specified by:
getClaimStrategy in interface ISrvMonDisruptorStats
Returns:
The claim strategy used by threads inputing events to the disruptor

hasClaimStrategy

public final boolean hasClaimStrategy()
Description copied from interface: ISrvMonDisruptorStats
Checks for the presence of 'claimStrategy'

Field Description

The claim strategy used by threads inputing events to the disruptor

Specified by:
hasClaimStrategy in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.getClaimStrategy()

clearClaimStrategy

public final void clearClaimStrategy()
Description copied from interface: ISrvMonDisruptorStats
Clears the value of 'claimStrategy'

Field Description

The claim strategy used by threads inputing events to the disruptor

Specified by:
clearClaimStrategy in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.setClaimStrategy(SrvMonDisruptorClaimStrategy)

getWaitStrategyFieldId

public static final int getWaitStrategyFieldId()
Get the field id for 'waitStrategy'

This method can be used to set field interests.

See Also:
getWaitStrategy()

setWaitStrategy

public final void setWaitStrategy(SrvMonDisruptorWaitStrategy val)
Description copied from interface: ISrvMonDisruptorStats
Sets the value of 'waitStrategy'

Field Description

The claim strategy used by thread processing events in the disruptor

Specified by:
setWaitStrategy in interface ISrvMonDisruptorStats
Parameters:
val - The value to set.

setWaitStrategyFrom

public final void setWaitStrategyFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorWaitStrategy> val)

getWaitStrategyField

public final com.neeve.xbuf.XbufVariableEnumField<SrvMonDisruptorWaitStrategy> getWaitStrategyField()

getWaitStrategy

public final SrvMonDisruptorWaitStrategy getWaitStrategy()
Description copied from interface: ISrvMonDisruptorStats
Gets the value of 'waitStrategy'

Field Description

The claim strategy used by thread processing events in the disruptor

Specified by:
getWaitStrategy in interface ISrvMonDisruptorStats
Returns:
The claim strategy used by thread processing events in the disruptor

hasWaitStrategy

public final boolean hasWaitStrategy()
Description copied from interface: ISrvMonDisruptorStats
Checks for the presence of 'waitStrategy'

Field Description

The claim strategy used by thread processing events in the disruptor

Specified by:
hasWaitStrategy in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.getWaitStrategy()

clearWaitStrategy

public final void clearWaitStrategy()
Description copied from interface: ISrvMonDisruptorStats
Clears the value of 'waitStrategy'

Field Description

The claim strategy used by thread processing events in the disruptor

Specified by:
clearWaitStrategy in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.setWaitStrategy(SrvMonDisruptorWaitStrategy)

getOfferToPollLatenciesFieldId

public static final int getOfferToPollLatenciesFieldId()
Get the field id for 'offerToPollLatencies'

This method can be used to set field interests.

See Also:
getOfferToPollLatencies()

setOfferToPollLatencies

public final void setOfferToPollLatencies(SrvMonIntSeries val)
Description copied from interface: ISrvMonDisruptorStats
Sets the value of 'offerToPollLatencies'

Field Description

Measures latency of events passing in the disruptor

Specified by:
setOfferToPollLatencies in interface ISrvMonDisruptorStats
Parameters:
val - The value to set.

lendOfferToPollLatencies

public final void lendOfferToPollLatencies(SrvMonIntSeries val)
Description copied from interface: ISrvMonDisruptorStats
'Lends' a reference of the SrvMonIntSeries to the message for this field.

Field Description

Measures latency of events passing in the disruptor

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.

Specified by:
lendOfferToPollLatencies in interface ISrvMonDisruptorStats
Parameters:
val - the value to 'lend' to lend.

getOfferToPollLatencies

public final SrvMonIntSeries getOfferToPollLatencies()
Description copied from interface: ISrvMonDisruptorStats
Gets the value of 'offerToPollLatencies'

Field Description

Measures latency of events passing in the disruptor

Specified by:
getOfferToPollLatencies in interface ISrvMonDisruptorStats
Returns:
Measures latency of events passing in the disruptor

getOfferToPollLatenciesTo

public final void getOfferToPollLatenciesTo(SrvMonIntSeries to)
Description copied from interface: ISrvMonDisruptorStats
Copies the value of SrvMonIntSeries into the provided value.

IF the value is not set, then the contents of the provided SrvMonIntSeries are cleared.

Specified by:
getOfferToPollLatenciesTo in interface ISrvMonDisruptorStats
Parameters:
to - the value to copy into
See Also:
SrvMonIntSeries.copyInto(SrvMonIntSeries)

takeOfferToPollLatencies

public final SrvMonIntSeries takeOfferToPollLatencies()
Description copied from interface: ISrvMonDisruptorStats
'Takes' a reference to the offerToPollLatencies field from the message.

Field Description

Measures latency of events passing in the disruptor

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.

Specified by:
takeOfferToPollLatencies in interface ISrvMonDisruptorStats
Returns:
a 'taken' reference to the field or null if the field is not set.

hasOfferToPollLatencies

public final boolean hasOfferToPollLatencies()
Description copied from interface: ISrvMonDisruptorStats
Checks for the presence of 'offerToPollLatencies'

Field Description

Measures latency of events passing in the disruptor

Specified by:
hasOfferToPollLatencies in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.getOfferToPollLatencies()

clearOfferToPollLatencies

public final void clearOfferToPollLatencies()
Description copied from interface: ISrvMonDisruptorStats
Clears the value of 'offerToPollLatencies'

Field Description

Measures latency of events passing in the disruptor

Specified by:
clearOfferToPollLatencies in interface ISrvMonDisruptorStats
See Also:
ISrvMonDisruptorStats.setOfferToPollLatencies(SrvMonIntSeries)

isDirty

public final boolean isDirty()

createSchema

public static final com.neeve.xbuf.XbufSchema createSchema()

serializeToByteArray

public final byte[] serializeToByteArray()

serializeToByteBuffer

public final ByteBuffer serializeToByteBuffer()

serializeToIOBuffer

public final com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)

isBufferBacked

public final boolean isBufferBacked()

getSerializeToNativeLength

public final int getSerializeToNativeLength()

serializeToNative

public final int serializeToNative(long address,
                                   int addressOffset)

deserializeFromIOElasticBuffer

public final SrvMonDisruptorStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                                 int offset,
                                                                 int length,
                                                                 com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromIOElasticBuffer

public final SrvMonDisruptorStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                                 int offset,
                                                                 int length)

deserializeFromByteArray

public final SrvMonDisruptorStats deserializeFromByteArray(byte[] array,
                                                           com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromByteArray

public final SrvMonDisruptorStats deserializeFromByteArray(byte[] array)

deserializeFromByteBuffer

public final SrvMonDisruptorStats deserializeFromByteBuffer(ByteBuffer buffer,
                                                            com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromByteBuffer

public final SrvMonDisruptorStats deserializeFromByteBuffer(ByteBuffer buffer)

deserializeFromNative

public final SrvMonDisruptorStats deserializeFromNative(long address,
                                                        int offset,
                                                        int length,
                                                        com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromNative

public final SrvMonDisruptorStats deserializeFromNative(long address,
                                                        int offset,
                                                        int length)

sync

public final void sync()

desync

public final int desync(PktBuffer buffer,
                        int pos,
                        boolean frameOnly)
Specified by:
desync in interface com.neeve.xbuf.IXbufDesyncer

init

public final SrvMonDisruptorStats init()
Description copied from interface: UtlPool.Item
Initialize an 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.

Specified by:
init in interface UtlPool.Item<SrvMonDisruptorStats>
Returns:
Return 'this' object for method invocation chaining.

setPool

public final SrvMonDisruptorStats setPool(UtlPool<SrvMonDisruptorStats> pool)
Description copied from interface: UtlPool.Item
Set a pool item's pool.

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.

Specified by:
setPool in interface UtlPool.Item<SrvMonDisruptorStats>
Returns:
Return 'this' object for method invocation chaining.

getPool

public final UtlPool<SrvMonDisruptorStats> getPool()
Description copied from interface: UtlPool.Item
Get a pool item's pool.

This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

Specified by:
getPool in interface UtlPool.Item<SrvMonDisruptorStats>
Returns:
the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

isReferenceCounted

public final boolean isReferenceCounted()

acquire

public final SrvMonDisruptorStats acquire()

getOwnerCount

public final int getOwnerCount()

dispose

public final void dispose()

clone

public final Object clone()
Creates a clone of this object.

This method differs from the copy() method in that:

Overrides:
clone in class Object

copy

public final SrvMonDisruptorStats copy()
Creates a copy of this SrvMonDisruptorStats.

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.

Xbuf Pass-through Fields

When backed by a buffer, this operation copies the underlying buffer which means that if the message was deserialized from with unrecognized fields, such fields will be preserved in the copy as well.

Returns:
The copied entity.

copyInto

public final void copyInto(SrvMonDisruptorStats copy)
Copies the contents of this SrvMonDisruptorStats into the target.

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.

Xbuf Pass-through Fields

When backed by a buffer, this operation copies the underlying buffer which means that if the message was deserialized from with unrecognized fields, such fields will be preserved in the copy as well.

Parameters:
copy - The target into which to copy.

isValid

public final boolean isValid()
Description copied from interface: IRogValidatable
Tests if this object has any validation errors.

Specified by:
isValid in interface IRogValidatable

getValidationErrors

public final void getValidationErrors(List<XString> results,
                                      String errorPrefix)
Description copied from interface: IRogValidatable
Collects validation errors into the provided list. It is illegal for the caller to hold onto the List of XStrings beyond the lifespace of this object.

Specified by:
getValidationErrors in interface IRogValidatable
Parameters:
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.

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.