Instance Constructors
-
new
Ref
()
-
new
Ref
(initialValue: T)
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
___getListeners
(): Listeners
-
def
___getLockOwner
(): Transaction
-
def
___load
(arg0: Long): AlphaTranlocal
-
def
___load
(): AlphaTranlocal
-
def
___openForCommutingOperation
(): AlphaTranlocal
-
def
___registerRetryListener
(arg0: Latch, arg1: Long): RegisterRetryListenerResult
-
def
___releaseLock
(arg0: Transaction): Unit
-
def
___storeInitial
(arg0: AlphaTranlocal, arg1: Long): Unit
-
def
___storeUpdate
(arg0: AlphaTranlocal, arg1: Long, arg2: Boolean): Listeners
-
def
___tryLock
(arg0: Transaction): Boolean
-
def
alter
(f: (T) ⇒ T): T
-
def
apply
(): T
-
def
asInstanceOf
[T0]
: T0
-
def
clear
(): T
-
def
clear___ro
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): AnyRef
-
def
clear___ro
(arg0: AlphaTransaction): AnyRef
-
def
clear___up
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): AnyRef
-
def
clear___up
(arg0: AlphaTransaction): AnyRef
-
def
clone
(): AnyRef
-
def
elements
: Iterator[T]
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
filter
(p: (T) ⇒ Boolean): Ref[T]
-
def
finalize
(): Unit
-
def
flatMap
[B]
(f: (T) ⇒ Ref[B]): Ref[B]
-
def
foreach
[U]
(f: (T) ⇒ U): Unit
-
def
get
(): T
-
def
getClass
(): java.lang.Class[_]
-
def
getOrAwait
(): T
-
def
getOrAwaitInterruptibly
(): T
-
def
getOrAwaitInterruptibly___ro
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): AnyRef
-
def
getOrAwaitInterruptibly___ro
(arg0: AlphaTransaction): AnyRef
-
def
getOrAwaitInterruptibly___up
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): AnyRef
-
def
getOrAwaitInterruptibly___up
(arg0: AlphaTransaction): AnyRef
-
def
getOrAwait___ro
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): AnyRef
-
def
getOrAwait___ro
(arg0: AlphaTransaction): AnyRef
-
def
getOrAwait___up
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): AnyRef
-
def
getOrAwait___up
(arg0: AlphaTransaction): AnyRef
-
def
getOrElse
(default: ⇒ T): T
-
def
getOrWait
: T
-
def
get___ro
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): AnyRef
-
def
get___ro
(arg0: AlphaTransaction): AnyRef
-
def
get___up
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): AnyRef
-
def
get___up
(arg0: AlphaTransaction): AnyRef
-
def
hashCode
(): Int
-
def
isDefined
: Boolean
-
def
isEmpty
: Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
def
isNull
(): Boolean
-
def
isNull___ro
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): Boolean
-
def
isNull___ro
(arg0: AlphaTransaction): Boolean
-
def
isNull___up
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): Boolean
-
def
isNull___up
(arg0: AlphaTransaction): Boolean
-
def
map
[B]
(f: (T) ⇒ B): Ref[B]
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
opt
: Option[T]
-
def
set
(arg0: T): T
-
def
set___ro
(arg0: Any, arg1: AlphaTransaction, arg2: BasicRef__Tranlocal): AnyRef
-
def
set___ro
(arg0: Any, arg1: AlphaTransaction): AnyRef
-
def
set___up
(arg0: Any, arg1: AlphaTransaction, arg2: BasicRef__Tranlocal): AnyRef
-
def
set___up
(arg0: Any, arg1: AlphaTransaction): AnyRef
-
def
swap
(newValue: T): T
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toLeft
[X]
(right: ⇒ X): Product with Serializable with Either[T, X]
-
def
toList
: List[T]
-
def
toRight
[X]
(left: ⇒ X): Product with Serializable with Either[X, T]
-
def
toString
(): String
-
def
toString___ro
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): String
-
def
toString___ro
(arg0: AlphaTransaction): String
-
def
toString___up
(arg0: AlphaTransaction, arg1: BasicRef__Tranlocal): String
-
def
toString___up
(arg0: AlphaTransaction): String
-
def
update
(newValue: T): T
-
val
uuid
: String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
-
def
withFilter
(p: (T) ⇒ Boolean): WithFilter
Inherited from Serializable
Inherited from Serializable
Inherited from BasicRef[T]
Inherited from Ref[T]
Inherited from AnyRef
Inherited from Any
Refs (transactional references) are mutable references to values and through the STM allow the safe sharing of mutable data. Refs separate identity from value. To ensure safety the value stored in a Ref should be immutable (they can also contain refs themselves). The value referenced by a Ref can only be accessed or swapped within a transaction. If a transaction is not available, the call will be executed in its own transaction.
Creating a Ref (Scala)
Creating a Ref (Java)