2015/07/26 - Apache DirectMemory has been retired.

For more information, please explore the Attic.

public class

MemoryManager

extends Object
java.lang.Object
   ↳ org.apache.directmemory.memory.MemoryManager

Summary

Public Methods
static Pointer<Object> allocate(int size)
static long capacity()
static void clear()
static void close()
static long collectExpired()
static void collectLFU()
static void free(Pointer<Object> pointer)
static MemoryManagerService<Object> getMemoryManager()
static void init(int numberOfBuffers, int size)
static byte[] retrieve(Pointer<Object> pointer)
static Pointer<Object> store(byte[] payload, int expiresIn)
static Pointer<Object> store(byte[] payload)
static Pointer<Object> update(Pointer<Object> pointer, byte[] payload)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Pointer<Object> allocate (int size)

public static long capacity ()

public static void clear ()

public static void close ()

Throws
IOException

public static long collectExpired ()

public static void collectLFU ()

public static void free (Pointer<Object> pointer)

public static MemoryManagerService<Object> getMemoryManager ()

public static void init (int numberOfBuffers, int size)

public static byte[] retrieve (Pointer<Object> pointer)

public static Pointer<Object> store (byte[] payload, int expiresIn)

public static Pointer<Object> store (byte[] payload)

public static Pointer<Object> update (Pointer<Object> pointer, byte[] payload)