| sun.misc.VMNotification
VMNotification | public interface VMNotification (Code) | | The sun.misc.VMNotification interface is implemented by classes
wishing to receive events when the available memory changes state.
Compatibilty
Some PersonalJava implementations support the sun.misc.VM class.
In Personal Profile, the sun.misc package is optional.
|
Method Summary | |
void | newAllocState(int oldState, int newState, boolean notUsed) The sun.misc.VMNotification interface is implemented by
classes wishing to receive events when the available memory
changes state.
This method is invoked when the available memory in the system
changes state. |
newAllocState | void newAllocState(int oldState, int newState, boolean notUsed)(Code) | | The sun.misc.VMNotification interface is implemented by
classes wishing to receive events when the available memory
changes state.
This method is invoked when the available memory in the system
changes state. The listener should take appropriate action to
free memory when the available memory is in the YELLOW or RED states.
Parameters: oldState - The old memory state, one of VM.STATE_GREEN,VM.STATE_YELLOW or VM.STATE_RED Parameters: newState - The new memory state See Also: sun.misc.VM.registerVMNotification |
|
|