Block instances of fixed size. Instances are constructed by a BlockAllocatorProvider
And are usable to allocate Block instances by the caller until close() is called.
A user must call Block#close() on all blocks allocated from this allocator, before invoking close().
Implementations are not thread-safe.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Block | |
| public abstract void | close()
Redeclares java. Releases the allocator back to the |
| public abstract int |
| BlockAllocator | back to summary |
|---|---|
| pack-priv BlockAllocator() | |
| allocateBlock | back to summary |
|---|---|
| public abstract Block allocateBlock() Allocates a | |
| close | back to summary |
|---|---|
| public abstract void close() Redeclares java. Releases the allocator back to the | |
| getBlockSize | back to summary |
|---|---|
| public abstract int getBlockSize() Returns the fixed block size of the allocator. | |