com.brightcove.player.config

## Class AllocatorConfig

- java.lang.Object
- - com.brightcove.player.config.AllocatorConfig

-     public class AllocatorConfig
      extends java.lang.Object

  Config class used when creating a `Allocator` instance.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `AllocatorConfig.Builder` The AllocatorConfig Builder.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getIndividualAllocationSize()` Gets the length of each individual `Allocation`.
    `int` | `getInitialAllocationCount()` Gets the number of allocations to create up front.
    `boolean` | `isTrimOnReset()` Whether memory is freed when the allocator is reset.

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

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

- - ### Method Detail

    - #### isTrimOnReset

          public boolean isTrimOnReset()

      Whether memory is freed when the allocator is reset. Should be true unless the allocator will be re-used by multiple player instances.
      Returns:
        the boolean
      See Also:
        `DefaultAllocator`

    - #### getIndividualAllocationSize

          public int getIndividualAllocationSize()

      Gets the length of each individual `Allocation`.
      Returns:
        the individual allocation size
      See Also:
        `DefaultAllocator`

    - #### getInitialAllocationCount

          public int getInitialAllocationCount()

      Gets the number of allocations to create up front.
      Returns:
        the initial allocation count
      See Also:
        `DefaultAllocator`