java.lang.Object
edu.emory.mathcs.util.allocator.DirectAllocator
- All Implemented Interfaces:
- Allocator
- public class DirectAllocator
- extends java.lang.Object
- implements Allocator
Implementation of the Allocator interface which allocates fresh
data array at each request and has no memory usage control.
- Version:
- 1.0
Method Summary |
Allocator.Buffer |
allocate(int size,
boolean clear,
long timeout)
Creates a fresh buffer containing zeroed-out array of the specified size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectAllocator
public DirectAllocator()
allocate
public Allocator.Buffer allocate(int size,
boolean clear,
long timeout)
- Creates a fresh buffer containing zeroed-out array of the specified size.
- Specified by:
allocate
in interface Allocator