object SerializableTraceContext extends HasVersionedMessageCompanion[SerializableTraceContext] with HasVersionedMessageCompanionDbHelpers[SerializableTraceContext] with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SerializableTraceContext
  2. Serializable
  3. HasVersionedMessageCompanionDbHelpers
  4. HasVersionedMessageCompanion
  5. HasVersionedMessageCompanionCommon
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Deserializer = (ByteString) => ParsingResult[SerializableTraceContext]
  2. type Serializer = (SerializableTraceContext) => ByteString
  3. case class ProtoCodec(fromInclusive: ProtocolVersion, deserializer: Deserializer, serializer: (ValueClass) => GeneratedMessage) extends Product with Serializable
  4. case class SupportedProtoVersions extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. val empty: SerializableTraceContext
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def fromProtoSafeV30Opt(logger: Logger)(traceContextP: Option[v30.TraceContext]): SerializableTraceContext

    Construct a TraceContext from provided protobuf structure.

    Construct a TraceContext from provided protobuf structure. Errors will be logged at a WARN level using the provided storageLogger and an empty TraceContext will be returned.

  10. def fromProtoV30(tc: v30.TraceContext): ParsingResult[SerializableTraceContext]
  11. def fromProtoV30Opt(traceContextP: Option[v30.TraceContext]): ParsingResult[SerializableTraceContext]
  12. def fromProtoVersioned(proto: VersionedMessage[SerializableTraceContext]): ParsingResult[SerializableTraceContext]
  13. def fromTrustedByteArray(bytes: Array[Byte]): ParsingResult[SerializableTraceContext]
  14. def fromTrustedByteString(bytes: ByteString): ParsingResult[SerializableTraceContext]

    The embedded version is not validated

    The embedded version is not validated

    Definition Classes
    HasVersionedMessageCompanion
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def getVersionedSetParameter(protocolVersion: ProtocolVersion)(implicit setParameterByteArray: SetParameter[Array[Byte]]): SetParameter[SerializableTraceContext]
  17. def getVersionedSetParameterO(protocolVersion: ProtocolVersion)(implicit setParameterByteArrayO: SetParameter[Option[Array[Byte]]]): SetParameter[Option[SerializableTraceContext]]
  18. implicit def hasVersionedWrapperGetResult(implicit getResultByteArray: GetResult[Array[Byte]]): GetResult[SerializableTraceContext]
  19. implicit def hasVersionedWrapperGetResultO(implicit getResultByteArrayO: GetResult[Option[Array[Byte]]]): GetResult[Option[SerializableTraceContext]]
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def name: String

    The name of the class as used for pretty-printing

    The name of the class as used for pretty-printing

    Definition Classes
    SerializableTraceContextHasVersionedMessageCompanionCommon
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  26. def parseDelimitedFromTrusted(input: InputStream): Option[ParsingResult[SerializableTraceContext]]

    Deserializes a message using a delimiter (the message length) from the given input stream.

    Deserializes a message using a delimiter (the message length) from the given input stream.

    Unsafe! No deserialization validation is performed.

    Do NOT use this method unless you can justify that the given bytes originate from a trusted source.

    This method works in conjunction with com.digitalasset.canton.version.HasVersionedWrapper.writeDelimitedTo which should have been used to serialize the message. It is useful for deserializing multiple messages from a single input stream through repeated invocations.

    input

    the source from which a message is deserialized

    returns

    an Option that is None when there are no messages left anymore, otherwise it wraps an Either where left represents a deserialization error (exception) and right represents the successfully deserialized message

    Definition Classes
    HasVersionedMessageCompanion
  27. def readFromTrustedFile(inputFile: String): Either[String, SerializableTraceContext]
  28. def supportedProtoVersion[Proto <: GeneratedMessage](p: GeneratedMessageCompanion[Proto])(fromProto: (Proto) => ParsingResult[SerializableTraceContext]): (ByteString) => ParsingResult[SerializableTraceContext]
    Attributes
    protected
    Definition Classes
    HasVersionedMessageCompanion
  29. val supportedProtoVersions: SupportedProtoVersions

    Proto versions that are supported by fromProtoVersioned, fromByteString, toProtoVersioned and toByteString.

    Proto versions that are supported by fromProtoVersioned, fromByteString, toProtoVersioned and toByteString. See the helpers supportedProtoVersion and supportedProtoVersionMemoized below to define a ProtoCodec.

    Definition Classes
    SerializableTraceContextHasVersionedMessageCompanionCommon
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def tryReadFromTrustedFile(inputFile: String): SerializableTraceContext
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. object SupportedProtoVersions extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Ungrouped