final class RetryingComJSEnv extends ComJSEnv
A RetryingComJSEnv allows to automatically retry if a call to the underlying ComJSRunner fails.
While it protects the JVM side from observing state that differs inbetween runs that have been retried, it assumes that the executed JavaScript code does not have side-effects other than the ones visible through the channel (e.g. writing to a file). It is the users responsibility to ensure this property.
No retrying is performed for synchronous, or normal asynchronous runs.
- Alphabetic
- By Inheritance
- RetryingComJSEnv
- ComJSEnv
- AsyncJSEnv
- JSEnv
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
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 asyncRunner(libs: Seq[ResolvedJSDependency], code: VirtualJSFile): AsyncJSRunner
- Definition Classes
- RetryingComJSEnv → AsyncJSEnv
- final def asyncRunner(code: VirtualJSFile): AsyncJSRunner
- Definition Classes
- AsyncJSEnv
- val baseEnv: ComJSEnv
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def comRunner(libs: Seq[ResolvedJSDependency], code: VirtualJSFile): ComJSRunner
- Definition Classes
- RetryingComJSEnv → ComJSEnv
- final def comRunner(code: VirtualJSFile): ComJSRunner
- Definition Classes
- ComJSEnv
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jsRunner(libs: Seq[ResolvedJSDependency], code: VirtualJSFile): JSRunner
Prepare a runner for the code in the virtual file.
Prepare a runner for the code in the virtual file.
- Definition Classes
- RetryingComJSEnv → JSEnv
- final def jsRunner(code: VirtualJSFile): JSRunner
Prepare a runner without any libraries.
Prepare a runner without any libraries.
Strictly equivalent to:
this.jsRunner(Nil, code)
- Definition Classes
- JSEnv
- def loadLibs(libs: Seq[ResolvedJSDependency]): ComJSEnv
Return this JSEnv with the given libraries already loaded.
Return this JSEnv with the given libraries already loaded.
The following two are equivalent:
jsEnv.loadLibs(a).jsRunner(b, c) jsEnv.jsRunner(a ++ b, c)
- Definition Classes
- ComJSEnv → AsyncJSEnv → JSEnv
- val maxRetries: Int
- def name: String
Human-readable name for this JSEnv
Human-readable name for this JSEnv
- Definition Classes
- RetryingComJSEnv → JSEnv
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()