Class MatsTraceStringImpl

java.lang.Object
io.mats3.serial.impl.MatsTraceFieldImpl<String>
io.mats3.serial.json.MatsTraceStringImpl
All Implemented Interfaces:
MatsTrace<String>, Cloneable

public final class MatsTraceStringImpl extends MatsTraceFieldImpl<String>
Extension of MatsTraceFieldImpl which uses String for Z, meant to use JSON to serialize the DTO and STO payloads. Employed by MatsSerializerJson.
  • 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 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.