Class AtomicInteger
Inheritance
System.Object
AtomicInteger
Assembly: Steeltoe.Common.Abstractions.dll
Syntax
public class AtomicInteger : object
Constructors
|
Edit this page
View Source
AtomicInteger()
Declaration
|
Edit this page
View Source
AtomicInteger(Int32)
Declaration
public AtomicInteger(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Fields
|
Edit this page
View Source
_value
Declaration
protected volatile int _value
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Edit this page
View Source
Value
Declaration
public int Value { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Edit this page
View Source
AddAndGet(Int32)
Declaration
public int AddAndGet(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
CompareAndSet(Int32, Int32)
Declaration
public bool CompareAndSet(int expected, int update)
Parameters
Type |
Name |
Description |
System.Int32 |
expected |
|
System.Int32 |
update |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
DecrementAndGet()
Declaration
public int DecrementAndGet()
Returns
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
GetAndIncrement()
Declaration
public int GetAndIncrement()
Returns
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
IncrementAndGet()
Declaration
public int IncrementAndGet()
Returns
Type |
Description |
System.Int32 |
|