Top Description Constructors Methods
org.apache.tomcat.jni

public Class Pool

extends Object
Class Inheritance

Provides access to APR memory pools which are used to manage memory allocations for natively created instances.

Constructor Summary

AccessConstructor and Description
public
Pool()

Method Summary

Modifier and TypeMethod and Description
public static native long

Returns:

The pool we have just created.
create
(long
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.
parent
)

Create a new pool.

public static native void
destroy(long
The pool to destroy
pool
)

Destroy the pool.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Poolback to summary
public Pool()

Method Detail

createback to summary
public static native long create(long parent)

Create a new pool.

Parameters
parent:long

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.

Returns:long

The pool we have just created.

destroyback to summary
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.

Parameters
pool:long

The pool to destroy