case class ExecutionPhaseLock(name: String, entryBarrier: AtomicBarrier = new AtomicBarrier(), exitBarrier: AtomicBarrier = new AtomicBarrier()) extends Product with Serializable
An ExecutionPhaseLock is an abstraction to keep multiple transactions moving in a pre-selected lock-step sequence.
In order to pass a phase, we first wait on the entryBarrier. Once we are allowed to pass there,
we can execute the code that belongs to this phase, and then we unblock the exitBarrier.
- name
human readable name for debugging
- Alphabetic
- By Inheritance
- ExecutionPhaseLock
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ExecutionPhaseLock(name: String, entryBarrier: AtomicBarrier = new AtomicBarrier(), exitBarrier: AtomicBarrier = new AtomicBarrier())
- name
human readable name for debugging
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()
- val entryBarrier: AtomicBarrier
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def execute[T](f: => T): T
Wait to enter this phase, then execute
f, and leave before returning the result off.Wait to enter this phase, then execute
f, and leave before returning the result off.- returns
the result of evaluating
f
- val exitBarrier: AtomicBarrier
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasEntered: Boolean
- def hasLeft: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def leave(): Unit
Unblock the next dependent phase.
- val name: String
- 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()
- def passThrough(): Unit
If there is nothing that needs to be done in this phase, we can leave immediately after entering.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()
- def waitToEnter(): Unit
Blocks at this point until the phase has been entered.
- def waitToLeave(): Unit
Blocks at this point until the phase has been left.