APIdia Launch Partner
Top Description Constructors Methods
com.sun.webkit

public final Class PageCache

extends Object
Class Inheritance

A collection of static methods for page cache management.

Constructor Summary

AccessConstructor and Description
private
PageCache()

The private default constructor.

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

the current capacity of the page cache, in pages.
getCapacity
()

Returns the capacity of the page cache.

public static void
setCapacity(int
specifies the new capacity of the page cache, in pages.
capacity
)

Sets the capacity of the page cache.

private static native int
private static native void
twkSetCapacity(int capacity)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PageCacheback to summary
private PageCache()

The private default constructor. Ensures non-instantiability.

Method Detail

getCapacityback to summary
public static int getCapacity()

Returns the capacity of the page cache.

Returns:int

the current capacity of the page cache, in pages.

setCapacityback to summary
public static void setCapacity(int capacity)

Sets the capacity of the page cache.

Parameters
capacity:int

specifies the new capacity of the page cache, in pages.

Exceptions
IllegalArgumentException:
if capacity is negative.
twkGetCapacityback to summary
private static native int twkGetCapacity()
twkSetCapacityback to summary
private static native void twkSetCapacity(int capacity)