Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.emory.mathcs.util.allocator
Class DirectAllocator

    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
Author:
  Dawid Kurzyniec

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`
  Parameters:
    `size` - the requested buffer size
    `clear` - ignored
    `timeout` - ignored
  Returns:
    newly allocated buffer

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD