org.apache.directmemory.memory
Class MemoryManager
java.lang.Object
org.apache.directmemory.memory.MemoryManager
public class MemoryManager
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.