object ClockConfig extends Serializable
- Alphabetic
- By Inheritance
- ClockConfig
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class RemoteClock(remoteApi: ClientConfig) extends ClockConfig with Product with Serializable
Configure Canton to use a remote clock
Configure Canton to use a remote clock
In crash recovery testing scenarios, we want several processes to use the same time. In most cases, we can rely on NTP and the host clock. However, in cases where we test static time, we need the spawn processes to access the main processes clock. For such cases we can use a remote clock. However, no user should ever require this.
- remoteApi
admin-port of the node to read the time from
- final case class WallClock(skew: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofSeconds(0)) extends ClockConfig with Product with Serializable
Configure Canton to use the wall clock (default)
Configure Canton to use the wall clock (default)
- skew
maximum simulated clock skew (0) If positive, Canton nodes will use a WallClock, but the time of the wall clocks will be shifted by a random number between
-simulateMaxClockSkewMillis
andsimulateMaxClockSkewMillis
. The clocks will never move backwards.
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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
- case object SimClock extends ClockConfig with Product with Serializable
Configure Canton to use a simclock
Configure Canton to use a simclock
A SimClock's time only progresses when com.digitalasset.canton.time.SimClock.advance is explicitly called.