Package com.brightcove.player.config
Class AllocatorConfig
java.lang.Object
com.brightcove.player.config.AllocatorConfig
Config class used when creating a
Allocator instance.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe AllocatorConfig Builder. -
Method Summary
Modifier and TypeMethodDescriptionintGets the length of each individualAllocation.intGets the number of allocations to create up front.booleanWhether memory is freed when the allocator is reset.
-
Method Details
-
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 individualAllocation.- 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
-