Click or drag to resize
Akka.NETAtomicReferenceT Class
Implementation of the java.concurrent.util AtomicReference type. Uses Volatile internally to enforce ordering of writes without any explicit locking. .NET's strong memory on write guarantees might already enforce this ordering, but the addition of the Volatile guarantees it.
Inheritance Hierarchy
SystemObject
  Akka.UtilAtomicReferenceT
    Akka.Streams.ImplementationVirtualProcessorT

Namespace:  Akka.Util
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public class AtomicReference<T>
where T : class

Type Parameters

T
TBD

The AtomicReferenceT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyValue
The current value of this AtomicReferenceT
Top
Methods
  NameDescription
Public methodCompareAndSet
If Value equals expected, then set the Value to newValue.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAndSet
Atomically sets the Value to newValue and returns the old Value.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic member(T to AtomicReferenceT)
Performs an implicit conversion from [!:T] to AtomicReferenceT.
Public operatorStatic member(AtomicReferenceT to T)
Performs an implicit conversion from AtomicReferenceT to [!:T].
Top
Fields
  NameDescription
Protected fieldatomicValue
TBD
Top
Extension Methods
See Also