Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.emory.mathcs.util.allocator
Class DirectAllocator  view DirectAllocator download DirectAllocator.java

java.lang.Object
  extended byedu.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

Nested Class Summary
 
Nested classes inherited from class edu.emory.mathcs.util.allocator.Allocator
Allocator.Buffer
 
Constructor Summary
DirectAllocator()
           
 
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
 

Constructor Detail

DirectAllocator

public DirectAllocator()
Method Detail

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