Package io.mats3.serial.json
Class MatsTraceStringImpl
Extension of
MatsTraceFieldImpl
which uses String for Z, meant to use JSON to serialize the DTO and STO
payloads. Employed by MatsSerializerJson
.-
Nested Class Summary
Nested classes/interfaces inherited from class io.mats3.serial.impl.MatsTraceFieldImpl
MatsTraceFieldImpl.CallImpl<Z>
Nested classes/interfaces inherited from interface io.mats3.serial.MatsTrace
MatsTrace.Call<Z>, MatsTrace.KeepMatsTrace, MatsTrace.StackState<Z>
-
Field Summary
-
Method Summary
Methods inherited from class io.mats3.serial.impl.MatsTraceFieldImpl
addGotoCall, addNextCall, addReplyCall, addRequestCall, addSendCall, cloneForNewCall, getCallFlow, getCallNumber, getCurrentCall, getCurrentSpanId, getCurrentState, getDebugInfo, getFlowId, getInitializedTimestamp, getInitializingAppName, getInitializingAppVersion, getInitializingHost, getInitiatorId, getKeepTrace, getParentMatsMessageId, getSameHeightEndpointEnteredTimestamp, getSameHeightOutgoingTimestamp, getStateFlow, getStateStack, getStateStack_internal, getTimeToLive, getTotalCallNumber, getTraceId, getTraceProperty, getTracePropertyKeys, isInteractive, isNoAudit, isNonPersistent, overrideInitializationTimestamp, setOutgoingTimestamp, setStageEnteredTimestamp, setTraceProperty, toString, withChildFlow, withDebugInfo
-
Method Details
-
createNew
public static MatsTrace<String> createNew(String traceId, String flowId, MatsTrace.KeepMatsTrace keepMatsTrace, boolean nonPersistent, boolean interactive, long ttlMillis, boolean noAudit) Creates a newMatsTrace
. Must add aMatsTrace.Call
before sending.- Parameters:
traceId
- the user-defined hopefully-unique id for this call flow.flowId
- the system-defined pretty-much-(for all purposes)-guaranteed-unique id for this call flow.keepMatsTrace
- the level of "trace keeping".nonPersistent
- if the messages in this flow should be non-persistentinteractive
- if the messages in this flow is of "interactive" priority.ttlMillis
- the number of milliseconds the message should live before being time out. 0 means "forever", and is the default.noAudit
- hint to the underlying implementation, or to any monitoring/auditing tooling on the Message Broker, that it does not make much value in auditing this message flow, typically because it is just a "getter" of information to show to some user, or a health-check validating that some service is up and answers in a timely fashion.- Returns:
- the newly created
MatsTrace
.
-