Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.util
Class BitArrayBin

    java.lang.Object
      org.codehaus.activemq.util.BitArrayBin

public class BitArrayBin
extends java.lang.Object

Holder for many bitArrays - used for message audit

Version:
  $Revision: 1.2 $

Constructor Summary
`BitArrayBin(int windowSize)` Create a BitArrayBin to a certain window size (number of messages to keep)

Method Summary
`boolean` | `getBit(long index)` Get the boolean value at the index
`boolean` | `setBit(long index, boolean value)` Set a bit

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BitArrayBin

    public BitArrayBin(int windowSize)

  Create a BitArrayBin to a certain window size (number of messages to keep)

Parameters:
  `windowSize` -

Method Detail

### setBit

    public boolean setBit(long index,
                          boolean value)

  Set a bit

  Parameters:
    `index` -
    `value` -
  Returns:

### getBit

    public boolean getBit(long index)

  Get the boolean value at the index

  Parameters:
    `index` -
  Returns:
    true/false

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Protique, Ltd.. All Rights Reserved.