Methods Summary |
---|
public static native java.nio.ByteBuffer | alloc(long p, int size)Allocate a block of memory from a pool
|
public static native java.nio.ByteBuffer | calloc(long p, int size)Allocate a block of memory from a pool and set all of the memory to 0
|
public static native void | cleanupForExec()Run all of the child_cleanups, so that any unnecessary files are
closed because we are about to exec a new program
|
public static native void | cleanupKill(long pool, long data)Remove a previously registered cleanup function
|
public static native long | cleanupRegister(long pool, java.lang.Object o)Register a function to be called when a pool is cleared or destroyed
|
public static native void | clear(long pool)Clear all memory in the pool and run all the cleanups. This also destroys all
subpools.
|
public static native long | create(long parent)Create a new pool.
|
public static native java.lang.Object | dataGet(long pool, java.lang.String key)Return the data associated with the current pool.
|
public static native int | dataSet(long pool, java.lang.String key, java.lang.Object data)Set the data associated with the current pool
|
public static native void | destroy(long pool)Destroy the pool. This takes similar action as apr_pool_clear() and then
frees all the memory.
This will actually free the memory
|
public static native boolean | isAncestor(long a, long b)Determine if pool a is an ancestor of pool b
|
public static native void | noteSubprocess(long a, long proc, int how)Register a process to be killed when a pool dies.
|
public static native long | parentGet(long pool)Get the parent pool of the specified pool.
|