|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.vm.SynchronizedCounter
public abstract class SynchronizedCounter
A counter that supports atomic increment and reset.
| Constructor Summary | |
|---|---|
SynchronizedCounter()
|
|
| Method Summary | |
|---|---|
abstract int |
increment()
Adds 1 to the counter. |
abstract int |
peek()
Peek at the counter |
abstract int |
reset()
Reset the counter to 0, returning its previous value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizedCounter()
| Method Detail |
|---|
public abstract int reset()
public abstract int increment()
public abstract int peek()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||