public class Pool
extends java.lang.Object
| Constructor and Description |
|---|
Pool() |
| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
alloc(long p,
int size)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static java.nio.ByteBuffer |
calloc(long p,
int size)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static void |
cleanupForExec()
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static void |
cleanupKill(long pool,
long data)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static long |
cleanupRegister(long pool,
java.lang.Object o)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static void |
clear(long pool)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static long |
create(long parent)
Create a new pool.
|
static java.lang.Object |
dataGet(long pool,
java.lang.String key)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static int |
dataSet(long pool,
java.lang.String key,
java.lang.Object data)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static void |
destroy(long pool)
Destroy the pool.
|
static boolean |
isAncestor(long a,
long b)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static void |
noteSubprocess(long a,
long proc,
int how)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
static long |
parentGet(long pool)
Deprecated.
Unused. Will be removed in Tomcat 10.1
|
public static long create(long parent)
parent - The parent pool. If this is 0, the new pool is a root pool.
If it is non-zero, the new pool will inherit all of its
parent pool's attributes, except the apr_pool_t will be a
sub-pool.@Deprecated public static void clear(long pool)
pool - The pool to clear
This does not actually free the memory, it just allows the pool
to re-use this memory for the next allocation.public static void destroy(long pool)
pool - The pool to destroy@Deprecated public static long parentGet(long pool)
pool - The pool for retrieving the parent pool.@Deprecated
public static boolean isAncestor(long a,
long b)
a - The pool to searchb - The pool to search for@Deprecated
public static long cleanupRegister(long pool,
java.lang.Object o)
pool - The pool register the cleanup witho - The object to call when the pool is cleared
or destroyed@Deprecated
public static void cleanupKill(long pool,
long data)
pool - The pool remove the cleanup fromdata - The cleanup handler to remove from cleanup@Deprecated
public static void noteSubprocess(long a,
long proc,
int how)
a - The pool to use to define the processes lifetimeproc - The process to registerhow - How to kill the process, one of:
APR_KILL_NEVER -- process is never sent any signals APR_KILL_ALWAYS -- process is sent SIGKILL on apr_pool_t cleanup APR_KILL_AFTER_TIMEOUT -- SIGTERM, wait 3 seconds, SIGKILL APR_JUST_WAIT -- wait forever for the process to complete APR_KILL_ONLY_ONCE -- send SIGTERM and then wait
@Deprecated
public static java.nio.ByteBuffer alloc(long p,
int size)
p - The pool to allocate fromsize - The amount of memory to allocate@Deprecated
public static java.nio.ByteBuffer calloc(long p,
int size)
p - The pool to allocate fromsize - The amount of memory to allocate@Deprecated
public static int dataSet(long pool,
java.lang.String key,
java.lang.Object data)
data - The user data associated with the pool.key - The key to use for associationpool - The current pool
@Deprecated
public static java.lang.Object dataGet(long pool,
java.lang.String key)
key - The key for the data to retrievepool - The current pool.@Deprecated public static void cleanupForExec()
Copyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.