Package org.apache.activemq.util
Class BitArrayBin
- java.lang.Object
-
- org.apache.activemq.util.BitArrayBin
-
- All Implemented Interfaces:
Serializable
public class BitArrayBin extends Object implements Serializable
Holder for many bitArrays - used for message audit- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BitArrayBin(int windowSize)
Create a BitArrayBin to a certain window size (number of messages to keep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBit(long index)
Get the boolean value at the indexlong
getLastSetIndex()
boolean
isInOrder(long index)
Test if in orderboolean
setBit(long index, boolean value)
Set a bit
-
-
-
Method Detail
-
setBit
public boolean setBit(long index, boolean value)
Set a bit- Parameters:
index
-value
-- Returns:
- true if set
-
isInOrder
public boolean isInOrder(long index)
Test if in order- Parameters:
index
-- Returns:
- true if next message is in order
-
getBit
public boolean getBit(long index)
Get the boolean value at the index- Parameters:
index
-- Returns:
- true/false
-
getLastSetIndex
public long getLastSetIndex()
-
-