object Tx
Note: There is a Java-friendly API for this object: com.twitter.concurrent.Txs.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Tx
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
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
- val Unit: Tx[Unit]
A constant
Tx
with the value ofUnit
. - val aborted: Tx[Nothing]
A transaction that will always
ack()
withAbort
. - def apply[T](msg: T): Tx[T]
Analog of
Option.apply()
for Java compatibility. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def const[T](msg: T): Tx[T]
A
Tx
that will always commit the given value immediately.A
Tx
that will always commit the given value immediately.Note: Updates here must also be done at
Txs.newConstTx
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- 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
- def twoParty[T](msg: T): (Tx[Unit], Tx[T])
Create a two party transaction to exchange the value
msg
.Create a two party transaction to exchange the value
msg
.- returns
a
Tx
object for each participant, (sender, receiver)
- 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()
- case object Abort extends Result[Nothing] with Product with Serializable
- object AlreadyAckd extends Exception
- object AlreadyDone extends Exception
- object AlreadyNackd extends Exception