object ProtocolVersion extends Serializable
- Alphabetic
- By Inheritance
- ProtocolVersion
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait Beta extends Status
- final case class InvalidProtocolVersion(description: String) extends FailureReason with Product with Serializable
- type ProtocolVersionWithStatus[S <: Status] = ProtocolVersion { type Status = S }
- sealed trait Stable extends Status
- sealed trait Status extends AnyRef
Type-level marker for whether a protocol version is stable
- sealed trait Unstable extends Status
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
- 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]) @native() @IntrinsicCandidate()
- 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 domain. One such example is the minimum supported protocol version from a participant.
- lazy val dev: ProtocolVersionWithStatus[Unstable]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromProtoPrimitive(rawVersion: Int, allowDeleted: Boolean = false): ParsingResult[ProtocolVersion]
Like create ensures a supported protocol version; tailored to (de-)serialization purposes.
- def fromProtoPrimitiveS(rawVersion: String, 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
- @native() @IntrinsicCandidate()
- implicit val getResultProtocolVersion: GetResult[ProtocolVersion]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val latestStable: ProtocolVersion
- lazy val minimum: ProtocolVersion
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def parseUnchecked(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 lazy val protocolVersionReader: ConfigReader[ProtocolVersion]
- implicit val protocolVersionWriter: ConfigWriter[ProtocolVersion]
- implicit val setParameterProtocolVersion: SetParameter[ProtocolVersion]
- val smallestStable: ProtocolVersion
- val stable: NonEmpty[List[ProtocolVersion]]
All stable protocol versions supported by this release.
- 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, allowDeleted: Boolean = false): ProtocolVersion
Like create ensures a supported protocol version; but throws a runtime exception for errors.
- val unstable: NonEmpty[List[ProtocolVersionWithStatus[Unstable]]]
- lazy val v3: ProtocolVersionWithStatus[Stable]
- lazy val v4: ProtocolVersionWithStatus[Stable]
- lazy val v5: ProtocolVersionWithStatus[Stable]
- lazy val v6: ProtocolVersionWithStatus[Unstable]
- 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])