org.terracotta.offheapstore.paging
Class UnlimitedPageSource
java.lang.Object
org.terracotta.offheapstore.paging.UnlimitedPageSource
- All Implemented Interfaces:
- PageSource
public class UnlimitedPageSource
- extends Object
- implements PageSource
- Author:
- cdennis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnlimitedPageSource
public UnlimitedPageSource(BufferSource source)
allocate
public Page allocate(int size,
boolean thief,
boolean victim,
OffHeapStorageArea owner)
- Description copied from interface:
PageSource
- Attempt to allocate a page of the given size.
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.
- Specified by:
allocate in interface PageSource
- Returns:
free
public void free(Page page)
- Specified by:
free in interface PageSource
Copyright © 2015. All Rights Reserved.