|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.ThreadLocal
com.tangosol.util.ThreadGate.ThreadLocalCounter
public static class ThreadGate.ThreadLocalCounter
Specialization of ThreadLocalObject that can be used for efficient thread local long counters.
This class associates a single Long value with the current thread. The Long value may be retrieved, set, removed, incremented, or decremented.
Constructor Summary | |
---|---|
ThreadGate.ThreadLocalCounter() Create a new ThreadLocalCounter with an initial Long value of zero. |
Method Summary | |
---|---|
long |
decrement() Decrement the Long value of the ThreadLocalCounter for the current thread by one. |
long |
increment() Increment the Long value of the ThreadLocalCounter for the current thread by one. |
protected java.lang.Long |
initialValue() |
Methods inherited from class java.lang.ThreadLocal |
---|
get, remove, set |
Constructor Detail |
---|
public ThreadGate.ThreadLocalCounter()
Method Detail |
---|
public long increment()
decrement()
public long decrement()
increment()
protected java.lang.Long initialValue()
initialValue
in class java.lang.ThreadLocal
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |