Package io.mats3.serial.json
Class MatsTraceStringImpl
- java.lang.Object
-
- io.mats3.serial.impl.MatsTraceFieldImpl<java.lang.String>
-
- io.mats3.serial.json.MatsTraceStringImpl
-
- All Implemented Interfaces:
io.mats3.serial.MatsTrace<java.lang.String>,java.lang.Cloneable
public final class MatsTraceStringImpl extends io.mats3.serial.impl.MatsTraceFieldImpl<java.lang.String>Extension ofMatsTraceFieldImplwhich uses String for Z, meant to use JSON to serialize the DTO and STO payloads. Employed byMatsSerializerJson.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.mats3.serial.MatsTrace<java.lang.String>createNew(java.lang.String traceId, java.lang.String flowId, io.mats3.serial.MatsTrace.KeepMatsTrace keepMatsTrace, boolean nonPersistent, boolean interactive, long ttlMillis, boolean noAudit)Creates a newMatsTrace.-
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 Detail
-
createNew
public static io.mats3.serial.MatsTrace<java.lang.String> createNew(java.lang.String traceId, java.lang.String flowId, io.mats3.serial.MatsTrace.KeepMatsTrace keepMatsTrace, boolean nonPersistent, boolean interactive, long ttlMillis, boolean noAudit)Creates a newMatsTrace. Must add aMatsTrace.Callbefore 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.
-
-