|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.util.UtlListElement
com.neeve.sma.MessageViewImpl
public abstract class MessageViewImpl
Base class implementation of a message view.
Field Summary |
---|
Fields inherited from class com.neeve.util.UtlListElement |
---|
count, head, next, prev |
Fields inherited from interface com.neeve.sma.MessageView |
---|
ENCODING_TYPE_CUSTOM, ENCODING_TYPE_JSON, ENCODING_TYPE_PROTOBUF, ENCODING_TYPE_XBUF, NEXT_FREE_ENCODING_TYPE |
Method Summary | |
---|---|
void |
acquire()
Implementation of MessageView.acquire() |
int |
dispose()
Default implementation of MessageView.dispose()
This is the default implementation of the dispose method. |
Object |
getMessage()
Implementation of MessageView.getMessage() |
int |
getMessageEncodingType()
Implementation of MessageView.getMessageEncodingType() |
int |
getOwnershipCount()
Implementation of MessageView.getOwnershipCount() |
Object |
getTag(int id)
Implementation of MessageView.getTag(int) |
short |
getType()
Implementation of MessageView.getType() |
short |
getVfid()
Implementation of MessageView.getVfid() |
UtlReferenceTracker |
referenceTracker()
Get an object's reference tracker. |
com.neeve.io.IOBuffer |
serializeToIOBuffer(boolean useNative)
Serializes the MessageView to an IOBuffer. |
void |
setTag(int id,
Object tag)
Implementation of MessageView.setTag(int, java.lang.Object) |
String |
toString()
Return a string representation of this object |
Methods inherited from class com.neeve.util.UtlListElement |
---|
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)
MessageView
MessageView
to an IOBuffer.
Ownership of the returned IOBuffer is given to the caller which should dispose of it when done.
The buffer backing the IOBuffer should be flipped (ready for read) upon return.
serializeToIOBuffer
in interface MessageView
useNative
- Whether the returned buffer should be native.
MessageView
serialized to an IOBuffer.public final void setTag(int id, Object tag)
MessageView.setTag(int, java.lang.Object)
setTag
in interface MessageView
public final Object getTag(int id)
MessageView.getTag(int)
getTag
in interface MessageView
public final short getVfid()
MessageView.getVfid()
getVfid
in interface MessageView
public final short getType()
MessageView.getType()
getType
in interface MessageView
public final int getMessageEncodingType()
MessageView.getMessageEncodingType()
getMessageEncodingType
in interface MessageView
public final Object getMessage()
MessageView.getMessage()
getMessage
in interface MessageView
public final void acquire()
MessageView.acquire()
acquire
in interface MessageView
public final int getOwnershipCount()
MessageView.getOwnershipCount()
getOwnershipCount
in interface MessageView
public int dispose()
MessageView.dispose()
This is the default implementation of the dispose method. The implementation just decrements the ownership count. Implementations that implement view object pooling or other such functionality should override this method but invoke this method to decrement the object reference count.
dispose
in interface MessageView
public final UtlReferenceTracker referenceTracker()
UtlReferenceTracker.HasReferenceTracker
This method returns an object's reference tracker intended for use for
debugging purposes. An object should instantiate a tracker only if
UtlReferenceTracker.ENABLED
is true or UtlReferenceTracker.enabled(Class)
is true for the object type. The flag can be enabled via the properties nv.reftracking.enabled
or by the nv.reftracking.types=fullclassname1[|fullclassnameN].
referenceTracker
in interface UtlReferenceTracker.HasReferenceTracker
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |