MemtablePool.SubPool (apache-cassandra API)
Date: 2014-10-21

org.apache.cassandra.utils.memory

## Class MemtablePool.SubPool

- java.lang.Object
- - org.apache.cassandra.utils.memory.MemtablePool.SubPool

- Enclosing class:
    MemtablePool

      public class MemtablePool.SubPool
      extends java.lang.Object

  Note the difference between acquire() and allocate(); allocate() makes more resources available to all owners, and acquire() makes shared resources unavailable but still recorded. An Owner must always acquire resources, but only needs to allocate if there are none already available. This distinction is not always meaningful.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `float` | `cleanThreshold`
    `long` | `limit`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MemtablePool.SubPool(long limit, float cleanThreshold)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `allocated()`
    `WaitQueue` | `hasRoom()`
    `MemtableAllocator.SubAllocator` | `newAllocator()`
    `long` | `used()`

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

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

- - ### Field Detail

    - #### limit

          public final long limit

    - #### cleanThreshold

          public final float cleanThreshold

  - ### Constructor Detail

    - #### MemtablePool.SubPool

          public MemtablePool.SubPool(long limit,
                              float cleanThreshold)

  - ### Method Detail

    - #### allocated

          public long allocated()

    - #### used

          public long used()

    - #### newAllocator

          public MemtableAllocator.SubAllocator newAllocator()

    - #### hasRoom

          public WaitQueue hasRoom()

Copyright © 2014 The Apache Software Foundation