|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Allocator
Handles allocation management of resources. Used for page allocations
in a Paged
resource.
Method Summary | |
---|---|
int |
alloc(int count)
Allocates a continuous number of items and returns the position of first item in the sequence. |
void |
clear()
Frees all previous allocations. |
void |
free(int firstPage,
int count)
Frees a given number of items at a given position. |
org.fusesource.hawtdb.internal.util.Ranges |
getFreeRanges()
|
int |
getLimit()
|
boolean |
isAllocated(int page)
|
void |
setFreeRanges(org.fusesource.hawtdb.internal.util.Ranges freeList)
|
void |
unfree(int firstPage,
int count)
Undoes a previous free method call. |
Method Detail |
---|
int alloc(int count) throws OutOfSpaceException
OutOfSpaceException
void free(int firstPage, int count)
void unfree(int firstPage, int count) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- may be thrown by some allocators.void clear() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
int getLimit()
boolean isAllocated(int page)
page
-
void setFreeRanges(org.fusesource.hawtdb.internal.util.Ranges freeList)
org.fusesource.hawtdb.internal.util.Ranges getFreeRanges()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |