object ProtocolVersion extends Serializable
- Alphabetic
- By Inheritance
- ProtocolVersion
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class InvalidProtocolVersion(description: String) extends FailureReason with Product with Serializable
- type ProtocolVersionWithStatus[S <: Status] = ProtocolVersion { type Status = S }
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val alpha: NonEmpty[List[ProtocolVersionWithStatus[Alpha]]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val beta: List[ProtocolVersionWithStatus[Beta]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def create(rawVersion: String, allowDeleted: Boolean = false): Either[String, ProtocolVersion]
Creates a ProtocolVersion from the given raw version value and ensures that it is a supported version.
Creates a ProtocolVersion from the given raw version value and ensures that it is a supported version.
- rawVersion
String to be parsed.
- allowDeleted
If true, don't fail if
rawVersion
corresponds to a deleted protocol version. This should only be used when parsing a version that does not correspond to the one running on the synchronizer. One such example is the minimum supported protocol version from a participant.
- lazy val dev: ProtocolVersionWithStatus[Alpha]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val forSynchronizer: ProtocolVersion
The protocol version used to bootstrap a synchronizer.
The protocol version used to bootstrap a synchronizer.
Uses the latest protocol version as default, but allow overriding it with an environment variable
CANTON_PROTOCOL_VERSION
.- Exceptions thrown
java.lang.RuntimeException
if the environment variable's value cannot be parsed to a protocol version
- def fromProtoPrimitive(rawVersion: Int, allowDeleted: Boolean = false): ParsingResult[ProtocolVersion]
Like create ensures a supported protocol version; tailored to (de-)serialization purposes.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- implicit val getResultProtocolVersion: GetResult[ProtocolVersion]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val latest: ProtocolVersion
- lazy val minimum: ProtocolVersion
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def parseUnchecked(rawVersion: Int): Either[String, ProtocolVersion]
Same as above when parsing a raw version value
- def parseUncheckedS(rawVersion: String): Either[String, ProtocolVersion]
Parse a given raw version string into a ProtocolVersion without any further validation, i.e.
Parse a given raw version string into a ProtocolVersion without any further validation, i.e. it allows to create invalid and unsupported ProtocolVersion!
ONLY use this method when
- implementing functionality for the ProtocolVersion itself
- additional validation is being applied on the resulting ProtocolVersion afterwards as a exception
- testing and having a need for an invalid or unsupported ProtocolVersion
Otherwise, use one of the other factory methods.
- implicit val protocolVersionEncoder: Encoder[ProtocolVersion]
- implicit lazy val protocolVersionReader: ConfigReader[ProtocolVersion]
- implicit val protocolVersionWriter: ConfigWriter[ProtocolVersion]
- implicit val setParameterProtocolVersion: SetParameter[ProtocolVersion]
- val stable: NonEmpty[List[ProtocolVersion]]
- val supported: NonEmpty[List[ProtocolVersion]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryCreate(rawVersion: String): ProtocolVersion
Like create ensures a supported protocol version; but throws a runtime exception for errors.
- lazy val v33: ProtocolVersionWithStatus[Stable]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])