Click or drag to resize
Akka.NETIAtomicCounterT Interface
An interface that describes a numeric counter.

Namespace:  Akka.Util.Internal
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public interface IAtomicCounter<T>

Type Parameters

T
The type of the numeric.

The IAtomicCounterT type exposes the following members.

Properties
  NameDescription
Public propertyCurrent
The current value of this counter.
Top
Methods
  NameDescription
Public methodAddAndGet
Adds the specified value to the counter and returns the new value.
Public methodGetAndAdd
Returns the current value and adds the specified value to the counter.
Public methodGetAndIncrement
Atomically increments the counter by one.
Public methodIncrementAndGet
Atomically increments the counter by one.
Public methodNext
Increments the counter and gets the next value. This is exactly the same as calling IncrementAndGet.
Public methodReset
Resets the counter to zero.
Top
See Also