public abstract class MessageViewImpl extends UtlListElement implements MessageView
count, head, next, prev
ENCODING_TYPE_CUSTOM, ENCODING_TYPE_JSON, ENCODING_TYPE_PROTOBUF, ENCODING_TYPE_QUARK, ENCODING_TYPE_XBUF, ENCODING_TYPE_XBUF2, NEXT_FREE_ENCODING_TYPE
Modifier and Type | Method and Description |
---|---|
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() |
MessageTransportHeaders |
getMessageTransportHeaders()
Returns the message's transport headers.
|
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. |
MessageView |
setMessageTransportHeaders(MessageTransportHeaders headers)
Copies the provided transport headers into this message.
|
void |
setTag(int id,
Object tag)
Implementation of
MessageView.setTag(int, java.lang.Object) |
String |
toString()
Return a string representation of this object
|
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
deserializeFromByteArray, deserializeFromByteBuffer, deserializeFromJson, deserializeFromPacket, getAppSendBeginTs, getAppSendDoneTs, getCreateTs, getEnqueueTs, getEnqueueTsMicros, getMessageBus, getMessageBusAsRaw, getMessageChannel, getMessageChannelAsRaw, getMessageFlow, getMessageKey, getMessageKeyAsRaw, getMessageSender, getMessageSequenceNumber, getOriginTs, getOutTs, getOutTsMicros, getPostDeserializeTs, getPostProcessingTs, getPostProcessingTsMicros, getPostSerializeTs, getPostWireSendTs, getPostWireTs, getPreDeserializeTs, getPreProcessingTs, getPreProcessingTsMicros, getPreSerializeTs, getPreWireTs, getReceiveTs, getSendStartTs, getSendTs, isPossibleDuplicate, resolveMessageKeyWith, resolveMessageKeyWith, serializeToByteArray, serializeToByteBuffer, serializeToJson, serializeToPacket, setAppSendBeginTs, setAppSendDoneTs, setCreateTs, setEnqueueTsMicros, setMessageBus, setMessageBusAsRaw, setMessageChannel, setMessageChannelAsRaw, setMessageFlow, setMessageKey, setMessageKeyAsRaw, setMessageSender, setMessageSequenceNumber, setOriginTs, setOutTs, setOutTsMicros, setPossibleDuplicate, setPostDeserializeTs, setPostProcessingTs, setPostProcessingTsMicros, setPostSerializeTs, setPostWireSendTs, setPostWireTs, setPreDeserializeTs, setPreProcessingTs, setPreProcessingTsMicros, setPreSerializeTs, setPreWireTs, setReceiveTs, setSendStartTs, setSendTs, sync
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 MessageTransportHeaders getMessageTransportHeaders()
MessageView
Message transport headers store generic name/value pairs that are specific to a concrete messaging provider. Each message bus binding will typically support a different set of transport headers. On receipt of a message the binding pulls values off of the native message type and stores them in the transport header. For sent messages a binding implementation may support propagating values set in the transport header on the underlying native message type.
getMessageTransportHeaders
in interface MessageView
null
if transport headers are disabled, not present,
or unsupported by the MessageView
public MessageView setMessageTransportHeaders(MessageTransportHeaders headers)
MessageView
setMessageTransportHeaders
in interface MessageView
headers
- The headers to set on the message (or null to clear the transport headers).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
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.