Class 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 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

        io.mats3.serial.impl.MatsTraceFieldImpl.CallImpl<Z extends java.lang.Object>
      • Nested classes/interfaces inherited from interface io.mats3.serial.MatsTrace

        io.mats3.serial.MatsTrace.Call<Z extends java.lang.Object>, io.mats3.serial.MatsTrace.KeepMatsTrace, io.mats3.serial.MatsTrace.StackState<Z extends java.lang.Object>
    • Field Summary

      • Fields inherited from interface io.mats3.serial.MatsTrace

        NULLED
    • 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 new MatsTrace.
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 new MatsTrace. Must add a MatsTrace.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-persistent
        interactive - 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.