| Modifier and Type | Field and Description |
|---|---|
private long |
adds |
| Modifier | Constructor and Description |
|---|---|
protected |
StateBasedGCounter() |
protected |
StateBasedGCounter(long adds) |
| Modifier and Type | Method and Description |
|---|---|
long |
get()
Get the current value.
|
long |
getAndIncrement()
Increment the counter and get the result.
|
long |
getIncrement()
Get the amount that the value incremented.
|
GCounter |
increment()
Increment the counter and get the result.
|
long |
incrementAndGet()
Increment the counter and get the result.
|
GCounter |
merge(Count other)
Merge the supplied counter into this counter.
|
String |
toString() |
protected StateBasedGCounter()
protected StateBasedGCounter(long adds)
public GCounter increment()
GCounterpublic long incrementAndGet()
GCounterincrementAndGet in interface GCounterpublic long getAndIncrement()
GCountergetAndIncrement in interface GCounterpublic long get()
Countpublic long getIncrement()
GCountgetIncrement in interface GCountpublic GCounter merge(Count other)
GCounterCopyright © 2020 JBoss by Red Hat. All rights reserved.