Constructor and Description |
---|
ConcurrentBitSet(int maxBits,
int concurrencyLevel) |
Modifier and Type | Method and Description |
---|---|
void |
clear(int bitIndex) |
int |
compactHighestBitSet(int segment) |
int |
getAndSetNextClearBit()
Makes a best effort to atomically find the next clear bit and set it
|
int |
getAndSetNextClearBit(int segment) |
int |
getBitsPerSegment() |
int |
getBitsSet() |
int |
getBitsSet(int segment)
return an estimate of the number of bits set
|
int |
getHighestBitSet(int segment)
return an estimate of the highest bit (relative index) that has been set
|
int |
getNextSegment() |
int |
getTotalBits() |
void |
setCompact(boolean compact)
Set to always allocate against the first available block in a segment.
|
public ConcurrentBitSet(int maxBits, int concurrencyLevel)
maxBits
- concurrencyLevel
- - should be a power of 2public void clear(int bitIndex)
public int getAndSetNextClearBit()
public int getNextSegment()
public int getBitsSet(int segment)
segment
- public int getHighestBitSet(int segment)
segment
- public int getAndSetNextClearBit(int segment)
segment
- public int getTotalBits()
public int getBitsSet()
public int getBitsPerSegment()
public void setCompact(boolean compact)
compact
- public int compactHighestBitSet(int segment)
Copyright © 2018 JBoss by Red Hat. All rights reserved.