|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.server.mon.SrvMonAppBusChannelInfo
@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=103) public final class SrvMonAppBusChannelInfo
Holds information about a message bus binding channel.
Nested Class Summary | |
---|---|
static class |
SrvMonAppBusChannelInfo.Field
The SrvMonAppBusChannelInfo xbuf field (used internally when this entity is used as a field of another entity). |
static class |
SrvMonAppBusChannelInfo.ListField
The SrvMonAppBusChannelInfo list field (used internally when this entity is used as an array field of another entity). |
Field Summary | |
---|---|
static SrvMonAppBusChannelInfo[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type. |
Constructor Summary | |
---|---|
SrvMonAppBusChannelInfo()
|
|
SrvMonAppBusChannelInfo(int initialBackingBufferSize)
|
Method Summary | ||
---|---|---|
SrvMonAppBusChannelInfo |
acquire()
|
|
void |
clearContent()
|
|
void |
clearJoined()
Clears the value of 'joined' Field Description Whether or not this channel has been joined. |
|
void |
clearName()
Clears the value of 'name' Field Description The channel name. |
|
void |
clearXRogType()
|
|
Object |
clone()
Creates a clone of this object. |
|
SrvMonAppBusChannelInfo |
copy()
Creates a copy of this SrvMonAppBusChannelInfo. |
|
void |
copyInto(SrvMonAppBusChannelInfo copy)
Copies the contents of this SrvMonAppBusChannelInfo into the target. |
|
static SrvMonAppBusChannelInfo |
create()
|
|
static SrvMonAppBusChannelInfo |
createFrom(byte[] serializedContainer)
|
|
static SrvMonAppBusChannelInfo |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
static SrvMonAppBusChannelInfo |
createFromSerializedXbufContainer(byte[] serializedContainer)
|
|
static SrvMonAppBusChannelInfo |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
static com.neeve.xbuf.XbufSchema |
createSchema()
|
|
SrvMonAppBusChannelInfo |
deserializeFromByteArray(byte[] array)
|
|
SrvMonAppBusChannelInfo |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonAppBusChannelInfo |
deserializeFromByteBuffer(ByteBuffer buffer)
|
|
SrvMonAppBusChannelInfo |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonAppBusChannelInfo |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length)
|
|
SrvMonAppBusChannelInfo |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonAppBusChannelInfo |
deserializeFromNative(long address,
int offset,
int length)
|
|
SrvMonAppBusChannelInfo |
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()
|
|
boolean |
getIsReadOnly()
|
|
boolean |
getJoined()
Gets the value of 'joined' Field Description Whether or not this channel has been joined. |
|
com.neeve.xbuf.XbufVariableBooleanField |
getJoinedField()
|
|
static int |
getJoinedFieldId()
Get the field id for 'joined' This method can be used to set field interests. |
|
String |
getName()
Gets the value of 'name' Field Description The channel name. |
|
com.neeve.xbuf.XbufStringField |
getNameField()
|
|
static int |
getNameFieldId()
Get the field id for 'name' This method can be used to set field interests. |
|
|
getNameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getNameTo(XString val)
Copies the value of 'name' into the provided XString. |
|
XString |
getNameUnsafe()
Gets the raw value of 'name'. |
|
int |
getOwnerCount()
|
|
UtlPool<SrvMonAppBusChannelInfo> |
getPool()
Get a pool item's pool. |
|
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 |
hasJoined()
Checks for the presence of 'joined' Field Description Whether or not this channel has been joined. |
|
boolean |
hasName()
Checks for the presence of 'name' Field Description The channel name. |
|
boolean |
hasXRogType()
|
|
SrvMonAppBusChannelInfo |
init()
Initialize an item. |
|
boolean |
isBufferBacked()
|
|
boolean |
isDirty()
|
|
boolean |
isReferenceCounted()
|
|
boolean |
isValid()
Tests if this object has any validation errors. |
|
void |
lendName(XString val)
Sets the value of 'name' Field Description The channel name. |
|
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)
|
|
static void |
setFieldInterest(List<Integer> fieldIds)
|
|
void |
setJoined(boolean val)
Sets the value of 'joined' Field Description Whether or not this channel has been joined. |
|
void |
setJoinedFrom(com.neeve.xbuf.XbufVariableBooleanField val)
|
|
void |
setName(String val)
Sets the value of 'name' Field Description The channel name. |
|
void |
setNameFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setNameFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setNameFrom(XString val)
Copies the provided XString value into this object's 'name'. |
|
SrvMonAppBusChannelInfo |
setPool(UtlPool<SrvMonAppBusChannelInfo> pool)
Set a pool item's pool. |
|
void |
setXRogType(short val)
|
|
void |
setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
|
|
void |
sync()
|
|
void |
syncFieldBitmask()
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SrvMonAppBusChannelInfo[] EMPTY_ARRAY
Constructor Detail |
---|
public SrvMonAppBusChannelInfo()
public SrvMonAppBusChannelInfo(int initialBackingBufferSize)
Method Detail |
---|
public static SrvMonAppBusChannelInfo create()
public static SrvMonAppBusChannelInfo createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonAppBusChannelInfo createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonAppBusChannelInfo createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonAppBusChannelInfo 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 getJoinedFieldId()
This method can be used to set field interests.
getJoined()
public final void setJoined(boolean val)
ISrvMonAppBusChannelInfo
setJoined
in interface ISrvMonAppBusChannelInfo
val
- The value to set.public final boolean getJoined()
ISrvMonAppBusChannelInfo
getJoined
in interface ISrvMonAppBusChannelInfo
public final void setJoinedFrom(com.neeve.xbuf.XbufVariableBooleanField val)
public final com.neeve.xbuf.XbufVariableBooleanField getJoinedField()
public final boolean hasJoined()
ISrvMonAppBusChannelInfo
hasJoined
in interface ISrvMonAppBusChannelInfo
ISrvMonAppBusChannelInfo.getJoined()
public final void clearJoined()
ISrvMonAppBusChannelInfo
clearJoined
in interface ISrvMonAppBusChannelInfo
ISrvMonAppBusChannelInfo.setJoined(boolean)
public static final int getNameFieldId()
This method can be used to set field interests.
getName()
public final void setName(String val)
ISrvMonAppBusChannelInfo
setName
in interface ISrvMonAppBusChannelInfo
val
- The value to set.public final String getName()
ISrvMonAppBusChannelInfo
getName
in interface ISrvMonAppBusChannelInfo
public final void lendName(XString val)
ISrvMonAppBusChannelInfo
lendName
in interface ISrvMonAppBusChannelInfo
val
- The value to set.public final void setNameFrom(long val)
ISrvMonAppBusChannelInfo
NOTE:
This is the same as calling ISrvMonAppBusChannelInfo.setName(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setNameFrom
in interface ISrvMonAppBusChannelInfo
public final <T extends XString> T getNameTo(XString.Factory<T> factory)
ISrvMonAppBusChannelInfo
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;
getNameTo
in interface ISrvMonAppBusChannelInfo
factory
- The factory from which to get the XString to copy into and return
null
.public final void setNameFrom(XString val)
ISrvMonAppBusChannelInfo
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonAppBusChannelInfo.setName(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setNameFrom
in interface ISrvMonAppBusChannelInfo
public final void getNameTo(XString val)
ISrvMonAppBusChannelInfo
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonAppBusChannelInfo.getName()
bec
because it can avoid decoding the value into an String
.
getNameTo
in interface ISrvMonAppBusChannelInfo
ISrvMonAppBusChannelInfo.getName()
public final XString getNameUnsafe()
ISrvMonAppBusChannelInfo
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.
getNameUnsafe
in interface ISrvMonAppBusChannelInfo
ISrvMonAppBusChannelInfo.getName()
public final void setNameFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getNameField()
public final boolean hasName()
ISrvMonAppBusChannelInfo
hasName
in interface ISrvMonAppBusChannelInfo
ISrvMonAppBusChannelInfo.getName()
public final void clearName()
ISrvMonAppBusChannelInfo
clearName
in interface ISrvMonAppBusChannelInfo
ISrvMonAppBusChannelInfo.setName(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 SrvMonAppBusChannelInfo deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonAppBusChannelInfo deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonAppBusChannelInfo deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonAppBusChannelInfo deserializeFromByteArray(byte[] array)
public final SrvMonAppBusChannelInfo deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonAppBusChannelInfo deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonAppBusChannelInfo deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonAppBusChannelInfo 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 SrvMonAppBusChannelInfo 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<SrvMonAppBusChannelInfo>
public final SrvMonAppBusChannelInfo setPool(UtlPool<SrvMonAppBusChannelInfo> 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<SrvMonAppBusChannelInfo>
public final UtlPool<SrvMonAppBusChannelInfo> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool
getPool
in interface UtlPool.Item<SrvMonAppBusChannelInfo>
UtlPool.Item.setPool(com.neeve.util.UtlPool)
public final boolean isReferenceCounted()
public final SrvMonAppBusChannelInfo 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 SrvMonAppBusChannelInfo 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 SrvMonAppBusChannelInfo's embedded entity fields.
The returned copy will be writeable even if this SrvMonAppBusChannelInfo is read only.
public final void copyInto(SrvMonAppBusChannelInfo 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 SrvMonAppBusChannelInfo's embedded entity fields.
The returned copy will be writeable even if this SrvMonAppBusChannelInfo 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 |