final case class ZTestEnvironmentOptions extends Product with Serializable
Represents ZTestEnvironment options.
- See also
TestEnvironmentOptions
- Alphabetic
- By Inheritance
- ZTestEnvironmentOptions
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val initialTimeMillis: Option[Long]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val metricsScope: Option[com.uber.m3.tally.Scope]
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val target: Option[String]
- def toJava: TestEnvironmentOptions
- def toString(): String
- Definition Classes
- ZTestEnvironmentOptions → AnyRef → Any
- def transformJavaOptions(f: (Builder) => Builder): ZTestEnvironmentOptions
Allows to specify options directly on the java SDK's TestEnvironmentOptions.
Allows to specify options directly on the java SDK's TestEnvironmentOptions. Use it in case an appropriate
withXXX
method is missing- Note
the options specified via this method take precedence over those specified via other methods.
- val useExternalService: Option[Boolean]
- val useTimeskipping: Option[Boolean]
- 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])
- def withInitialTime(value: Instant): ZTestEnvironmentOptions
Set the initial time for the workflow virtual clock.
Set the initial time for the workflow virtual clock.
Default is current time
- def withInitialTimeMillis(value: Long): ZTestEnvironmentOptions
Set the initial time for the workflow virtual clock, milliseconds since epoch.
Set the initial time for the workflow virtual clock, milliseconds since epoch.
Default is current time
- def withMetricsScope(value: com.uber.m3.tally.Scope): ZTestEnvironmentOptions
Sets the scope to be used for metrics reporting.
Sets the scope to be used for metrics reporting. Optional. Default is to not report metrics.
Note: Don't mock Scope in tests! If you need to verify the metrics behavior, create a real Scope and mock, stub or spy a reporter instance:
- value
the scope to be used for metrics reporting.
- def withTarget(value: String): ZTestEnvironmentOptions
Optional parameter that defines an endpoint which will be used for the communication with standalone temporal service.
Optional parameter that defines an endpoint which will be used for the communication with standalone temporal service. Has no effect if withUseExternalService is set to false.
Defaults to 127.0.0.1:7233
- def withUseExternalService(value: Boolean): ZTestEnvironmentOptions
Set to true in order to make test environment use external temporal service or false for in-memory test implementation.
- def withUseTimeskipping(value: Boolean): ZTestEnvironmentOptions
Sets whether the TestWorkflowEnvironment will timeskip.
Sets whether the TestWorkflowEnvironment will timeskip. If true, no actual wall-clock time will pass when a workflow sleeps or sets a timer.
Default is true
- def withWorkerFactoryOptions(value: ZWorkerFactoryOptions): ZTestEnvironmentOptions
- def withWorkflowClientOptions(value: ZWorkflowClientOptions): ZTestEnvironmentOptions
- val workerFactoryOptions: ZWorkerFactoryOptions
- val workflowClientOptions: ZWorkflowClientOptions
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)