public interface Allocator extends Closeable
long allocate(int size)
throws Exception
size - size of space to allocate.Exception - This method will throw exception if failed to allocate space.void free(long address)
address - address of the space to free.Chunk getChunkById(int chunkId)
chunkId - id of the chunk.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.