org.apache.solr.store.blockcache

## Class BlockLocks

- java.lang.Object
- - org.apache.solr.store.blockcache.BlockLocks

-     public class BlockLocks
      extends Object

  WARNING: This API is experimental and might change in incompatible ways in the next release.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BlockLocks(long numBits)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clear(int index)`
    `int` | `nextClearBit(int index)` Find the next clear bit in the bit set.
    `boolean` | `set(int index)` Thread safe set operation that will set the bit if and only if the bit was not previously set.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BlockLocks

          public BlockLocks(long numBits)

  - ### Method Detail

    - #### nextClearBit

          public int nextClearBit(int index)

      Find the next clear bit in the bit set.
      Parameters:
        `index` - index
      Returns:
        next next bit

    - #### set

          public boolean set(int index)

      Thread safe set operation that will set the bit if and only if the bit was not previously set.
      Parameters:
        `index` - the index position to set.
      Returns:
        returns true if the bit was set and false if it was already set.

    - #### clear

          public void clear(int index)

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.