Package org.jctools.counters
Class FixedSizeStripedLongCounter
- java.lang.Object
-
- org.jctools.counters.FixedSizeStripedLongCounter
-
-
Field Summary
Fields Modifier and Type Field Description protected static intCACHE_LINE_IN_LONGSprotected long[]cellsprotected static longCOUNTER_ARRAY_BASEprotected static longELEMENT_SHIFTprotected intmask
-
Constructor Summary
Constructors Constructor Description FixedSizeStripedLongCounter(int stripesCount)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longget()longgetAndReset()protected abstract longgetAndReset(long[] cells, long offset)voidinc()voidinc(long delta)protected abstract voidinc(long[] cells, long offset, long value)
-
-
-
Method Detail
-
getAndReset
public long getAndReset()
- Specified by:
getAndResetin interfaceCounter
-
inc
protected abstract void inc(long[] cells, long offset, long value)
-
getAndReset
protected abstract long getAndReset(long[] cells, long offset)
-
-