InterlockedCounter Class |
Namespace: Tangosol.Util
public class InterlockedCounter : AtomicCounter
The InterlockedCounter type exposes the following members.
| Name | Description | |
|---|---|---|
| InterlockedCounter | Initializes a new instance of the InterlockedCounter class |
| Name | Description | |
|---|---|---|
| Adjust |
Adjust the value of the counter by the specified amount, and
return the new value.
(Overrides AtomicCounterAdjust(Int64).) | |
| Decrement |
Decrement the value, and return the new value.
(Inherited from AtomicCounter.) | |
| Decrement(Int64) |
Decrement the value by c, and return the new value.
(Inherited from AtomicCounter.) | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetCount |
Return the current value of the counter.
(Overrides AtomicCounterGetCount.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Increment |
Increment the value, and return the new value.
(Inherited from AtomicCounter.) | |
| Increment(Int64) |
Incremenet the value by c, and return the new value.
(Inherited from AtomicCounter.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| PostAdjust |
Adjust the value of the counter by the specified amount, and
return the old value.
(Overrides AtomicCounterPostAdjust(Int64).) | |
| PostDecrement |
Decrement the value, and return the original value.
(Inherited from AtomicCounter.) | |
| PostDecrement(Int64) |
Decrement the value by c, and return the original value.
(Inherited from AtomicCounter.) | |
| PostIncrement |
Incremenet the value, and return the original value.
(Inherited from AtomicCounter.) | |
| PostIncrement(Int64) |
Incremenet the value by c, and return the original value.
(Inherited from AtomicCounter.) | |
| SetCount(Int64) |
Update the current value, and return the previous value.
(Overrides AtomicCounterSetCount(Int64).) | |
| SetCount(Int64, Int64) |
Update the current value, only if it is equal to the assumed
value.
(Overrides AtomicCounterSetCount(Int64, Int64).) | |
| ToString |
Return the count as a string.
(Inherited from AtomicCounter.) |