public interface ISectorManager
ISectorManagerdefines the contract required to manage a set of
ISectorManageris passed to the
SectorAllocatorconstructors and they will callback to manage their free list availability, and to trim the allocated storage if required.
|Modifier and Type||Method and Description|
When sufficient allocations have been freed for recycling that a threshold of availability of reached for all block sizes, then the allocator calls back to the SectorManager to signal it is available to be returned to the free list.
This request is made when the sectorAllocator no longer has a full set of block allocations available.
When a sector is first created, it will remain at the head of the free list until one of two conditions has been reached: The allocation has been saturated. The bit space has been filled.
void removeFromFreeList(SectorAllocator sectorAllocator)
sectorAllocator- to be removed
void addToFreeList(SectorAllocator sectorAllocator)
sectorAllocator- to be added
void trimSector(long trim, SectorAllocator sector)
trim- - the amount by which the sector allocation can be reduced
Copyright © 2006–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.