public interface IRogMetadata
Modifier and Type | Method and Description |
---|---|
long |
getEnqueueTs()
Get a message's enqueue timestamp in milliseconds.
|
long |
getEnqueueTsMicros()
Get a message's enqueue timestamp.
|
int |
getGraphId()
Get the object graph to which a graph node belongs
|
boolean |
getInMsgsInTransaction()
Get whether there are inbound messages in the transaction
|
boolean |
getIsInboundMessage()
Get whether a node is an inbound message (dispatched to app)
|
boolean |
getIsInternal()
Get whether a node type is for internal platform use
|
boolean |
getIsLastTransaction()
Get whether a node is contained in the last application transaction
|
boolean |
getIsMessage()
Get whether a node is a message (send or received)
|
boolean |
getIsOutboundMessage()
Get whether a node is an outbound message (sent by app)
|
boolean |
getIsReplayedMessage()
Get whether a node was replayed from the recovery log
|
String |
getMessageBus()
This method returns the bus associated with a message.
|
String |
getMessageChannel()
This method returns the channel associated with a message.
|
int |
getMessageFlow()
Returns the system-wide unique flow id.
|
String |
getMessageKey()
This method returns the key associated with a message.
|
int |
getMessageSender()
Returns the system-wide unique sender id.
|
long |
getMessageSequenceNumber()
Get the message sequence number.
|
MessageTransportHeaders |
getMessageTransportHeaders()
Returns the message's transport headers.
|
boolean |
getOutMsgsInTransaction()
Get whether there are outbound messages in the transaction
|
long |
getOutTs()
Get a message's out timestamp in milliseconds.
|
long |
getOutTsMicros()
Get a message's out timestamp in microseconds.
|
com.eaio.uuid.UUID |
getParentId()
Get the object id of an ROG node's parent node.
|
long |
getPreProcessingTs()
Get a message's pre-processing timestamp in milliseconds.
|
long |
getPreProcessingTsMicros()
Get a message's pre-processing timestamp.
|
int |
getTransactionInSequenceNumber()
Get a message node's transaction inbound sequence number.
|
int |
getTransactionOutSequenceNumber()
Get a message node's transaction outbound sequence number.
|
boolean |
isPossibleDuplicate()
|
String |
metadataToJsonString()
Gets a string representation of the metadat in json format with
the configured value for nv.ident.json dictating whether the
json string is indented.
|
String |
metadataToJsonString(boolean indentOutput)
Gets a string representation of the metadat in json format.
|
String |
metadataToString()
Gets a string representation of a node's metadata.
|
int getGraphId()
com.eaio.uuid.UUID getParentId()
Each ROG node is uniquely identified in the system using a UUID. This method method returns the object id of an ROG node's parent object.
int getTransactionInSequenceNumber()
An application transaction can span multiple inbound and/or outbound messages. This field stores the inbound sequence number of a message relative to its transaction. If the message is an inbound message, then this field is the sequence number of the inbound messages within the transaction. If the message is an outbound message, then this field is the sequence number of the inbound message that triggered the outbound message. If no message triggered the outbound message, then this field would be 0.
int getTransactionOutSequenceNumber()
An application transaction can span multiple inbound and/or outbound messages. This field stores the outbound sequence number of a message relative to its transaction. If the message is an inbound message, then this field is always 0. If the message is an outbound message, then this field is the sequence number of the outbound message within the set of outbound messages in the transaction.
long getPreProcessingTs()
This value is the same as getPreProcessingTsMicros()
/ 1000.
getPreProcessingTsMicros()
long getPreProcessingTsMicros()
This timestamp, in microseconds, specifies the time just before a message was dispatched to the application for processing.
Because the pre-processing timestamp is used to provide HA consistent time for an application that is using Event Sourcing as an HaPolicy, this value is guaranteed to be set to the same value as used on the primary instance. A backup instance or a primary recovering from a transaciton log will see the original preProcessingTs value.
This value is set using UtlTime.nowSinceEpoch()
(except as
noted above)
long getOutTs()
This value is the same as getOutTsMicros()
/ 1000.
getOutTsMicros()
long getOutTsMicros()
This timestamp is the same timestamp as which an application called send to initiate the send for the message.
Note that this timestamp is not the timestamp at which a message is actually written to the wire for delivery. A sent message is queued for delivery until the transaction that is is part of is committed.
This value is set using UtlTime.nowSinceEpoch()
long getEnqueueTs()
This timestamp is the same as getEnqueueTsMicros()
/ 1000.
getEnqueueTsMicros()
long getEnqueueTsMicros()
This timestamp, in microseconds, specifies the time just before a message was enqueued on an application's input queue.
This timestamp can be compared with getPreProcessingTsMicros()
to determine the amount of time that the message spent on an
application's input queue unless the application is configured to
use Event Sourcing and the message is one re-enqueued during recovery
from a transaction or received by a backup instance via replication.
This value is set using UtlTime.nowSinceEpoch()
boolean getIsInternal()
boolean getIsLastTransaction()
boolean getIsMessage()
boolean getIsInboundMessage()
boolean getIsOutboundMessage()
boolean getIsReplayedMessage()
boolean getInMsgsInTransaction()
boolean getOutMsgsInTransaction()
boolean isPossibleDuplicate()
String getMessageBus()
String getMessageChannel()
String getMessageKey()
int getMessageSender()
getMessageSequenceNumber()
are scoped by sender.int getMessageFlow()
long getMessageSequenceNumber()
MessageTransportHeaders getMessageTransportHeaders()
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.
null
if transport headers are disabled, not present,
or unsupported by the MessageView
String metadataToString()
String metadataToJsonString(boolean indentOutput)
indentOutput
- Whether or not to indent the output.String metadataToJsonString()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.