public static interface MatsTrace.Call<Z>
MatsTrace
.Modifier and Type | Interface and Description |
---|---|
static class |
MatsTrace.Call.CallType
Which type of Call this is.
|
static interface |
MatsTrace.Call.Channel
An encapsulation of the stageId/endpointId along with the
MatsTrace.Call.MessagingModel the message should be
delivered over. |
static class |
MatsTrace.Call.MessagingModel
Specifies what type of Messaging Model a 'to' and 'replyTo' is to go over: Queue or Topic.
|
Modifier and Type | Method and Description |
---|---|
long |
getCalledTimestamp() |
java.lang.String |
getCallingAppName() |
java.lang.String |
getCallingAppVersion() |
java.lang.String |
getCallingHost() |
MatsTrace.Call.CallType |
getCallType() |
Z |
getData() |
java.lang.String |
getDebugInfo() |
java.lang.String |
getFrom() |
java.lang.String |
getMatsMessageId() |
long |
getReplyFromSpanId() |
java.util.List<MatsTrace.Call.Channel> |
getReplyStack() |
int |
getReplyStackHeight() |
MatsTrace.Call.Channel |
getTo() |
MatsTrace.Call<Z> |
setDebugInfo(java.lang.String callingAppName,
java.lang.String callingAppVersion,
java.lang.String callingHost,
java.lang.String debugInfo)
Can only be set once.
|
long getCalledTimestamp()
java.lang.String getMatsMessageId()
MatsTrace.getFlowId()
+ "_" + flow-unique messageId.MatsTrace.Call<Z> setDebugInfo(java.lang.String callingAppName, java.lang.String callingAppVersion, java.lang.String callingHost, java.lang.String debugInfo)
java.lang.String getCallingAppName()
java.lang.String getCallingAppVersion()
java.lang.String getCallingHost()
java.lang.String getDebugInfo()
MatsTrace.Call.CallType getCallType()
long getReplyFromSpanId()
getCallType()
is REPLY
, the value of the REQUEST's SpanId is
returned, otherwise an IllegalStateException
is thrown.java.lang.String getFrom()
"-nulled-"
for any
other Call than the MatsTrace.getCurrentCall()
, to conserve space in the MatsTrace. The
rationale for this, is that if those Calls are available, they are there for debug purposes only, and
then you can use the order of the Calls to see who is the caller: The previous Call's "to"
is the "from"
of this Call.MatsTrace.Call.Channel getTo()
MatsTrace.Call.Channel
to also specify the
MatsTrace.Call.MessagingModel
in use.Z getData()
int getReplyStackHeight()
REPLY
to a Terminator, the stack is of size 0 (there are no more elements to
REPLY to), while for the first REQUEST
from an initiator, the stack is of
size 1 (the endpointId for the Terminator is the one element below this Call).java.util.List<MatsTrace.Call.Channel> getReplyStack()
getReplyStackHeight()
) - NOTICE: This will most probably be a List with
getReplyStackHeight()
elements containing "-nulled-" for any other Call than the
MatsTrace.getCurrentCall()
, to conserve space in the MatsTrace. The LAST (i.e. position
'size()-1') element is the most recent, meaning that the next REPLY will go here, while the FIRST
(i.e. position 0) element is the earliest in the stack, i.e. the stageId where the Terminator
endpointId typically will reside (unless the initial call was a SEND
, which
means that you don't want a reply).