public class UnlimitedPageSource extends Object implements PageSource
| Constructor and Description |
|---|
UnlimitedPageSource(BufferSource source) |
| Modifier and Type | Method and Description |
|---|---|
Page |
allocate(int size,
boolean thief,
boolean victim,
OffHeapStorageArea owner)
Attempt to allocate a page of the given size.
|
void |
free(Page page) |
public UnlimitedPageSource(BufferSource source)
public Page allocate(int size, boolean thief, boolean victim, OffHeapStorageArea owner)
PageSource
Allocations identified as thieves will if necessary 'steal' space from
previous allocations identified as 'victims' in order to fulfill the
allocation request. owner is the area from which the
returned page can subsequently be stolen or recovered. This is most likely
to be the calling instance.
allocate in interface PageSourcesize - size of page to allocatethief - true if the allocation can steal space from victimsvictim - true if the allocated page should be eligible for stealingowner - owner from which subsequent steal should occurnull in the case of failurepublic void free(Page page)
free in interface PageSourceCopyright © 2015–2024. All rights reserved.