public interface ISectorManager
ISectorManager defines the contract required to manage a set of
SectorAllocators.
The ISectorManager is passed to the SectorAllocator
constructors and they will callback to manage their free list availability,
and to trim the allocated storage if required.| Modifier and Type | Method and Description |
|---|---|
void |
addToFreeList(SectorAllocator sectorAllocator)
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.
|
void |
removeFromFreeList(SectorAllocator sectorAllocator)
This request is made when the sectorAllocator no longer has a full set of
block allocations available.
|
void |
trimSector(long trim,
SectorAllocator sector)
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 removedvoid addToFreeList(SectorAllocator sectorAllocator)
sectorAllocator - to be addedvoid trimSector(long trim,
SectorAllocator sector)
trim - - the amount by which the sector allocation can be reducedCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.