@NotThreadSafe class StateBasedPNCounter extends Object implements PNCounter
| Modifier | Constructor and Description |
|---|---|
protected |
StateBasedPNCounter() |
protected |
StateBasedPNCounter(long adds,
long removes) |
| Modifier and Type | Method and Description |
|---|---|
PNCounter |
decrement()
Decrement the counter and get the result.
|
long |
decrementAndGet()
Decrement the counter and get the result.
|
long |
get()
Get the current value.
|
long |
getAndDecrement()
Decrement the counter and get the result.
|
long |
getAndIncrement()
Increment the counter and get the result.
|
long |
getDecrement()
Get the amount that the value decremented.
|
long |
getIncrement()
Get the amount that the value incremented.
|
PNCounter |
increment()
Increment the counter and get the result.
|
long |
incrementAndGet()
Increment the counter and get the result.
|
PNCounter |
merge(Count other)
Merge the supplied counter into this counter.
|
String |
toString() |
protected StateBasedPNCounter()
protected StateBasedPNCounter(long adds,
long removes)
public PNCounter increment()
PNCounterpublic PNCounter decrement()
PNCounterpublic long incrementAndGet()
GCounterincrementAndGet in interface GCounterpublic long decrementAndGet()
PNCounterdecrementAndGet in interface PNCounterpublic long getAndIncrement()
GCountergetAndIncrement in interface GCounterpublic long getAndDecrement()
PNCountergetAndDecrement in interface PNCounterpublic long get()
PNCountpublic long getIncrement()
GCountgetIncrement in interface GCountpublic long getDecrement()
PNCountvalue is the total
increments minus the total decrementsgetDecrement in interface PNCountpublic PNCounter merge(Count other)
PNCounterCopyright © 2020 JBoss by Red Hat. All rights reserved.