org.apache.directmemory.memory
Class MemoryManager

java.lang.Object
  extended by org.apache.directmemory.memory.MemoryManager

public class MemoryManager
extends Object


Method Summary
static Pointer<Object> allocate(int size)
           
static long capacity()
           
static void clear()
           
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)
           
static Pointer<Object> store(byte[] payload, int expiresIn)
           
static Pointer<Object> update(Pointer<Object> pointer, byte[] payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(int numberOfBuffers,
                        int size)

store

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

store

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

update

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

retrieve

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

free

public static void free(Pointer<Object> pointer)

clear

public static void clear()

capacity

public static long capacity()

collectExpired

public static long collectExpired()

collectLFU

public static void collectLFU()

getMemoryManager

public static MemoryManagerService<Object> getMemoryManager()

allocate

public static Pointer<Object> allocate(int size)


Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.