[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

CanRunOutOfMemory

mixes in with Object

CanRunOutOfMemory



Operations

Get list of all operations

AnnounceOutOfMemory
AttemptMemoryRecoveryIn
CheckPendingLowOnMemoryOften
HandlePendingLowOnMemory
HandlePendingOutOfMemory


Attributes

Get list of all attributes

PendingLowOnMemory


Fields

No fields are defined by CanRunOutOfMemory or any of its superclasses.


Instance template

Class CanRunOutOfMemory cannot be instantiated.


Class definition

Define Class CanRunOutOfMemory;     
    mixes in with Object;
    
    attribute PendingLowOnMemory: Boolean, noGetter, noSetter;
        // corresponding heap in low memory state, we are about to handle
        // inheritor hooks up with actual heap and returns true if
        // emergency buffer used but not yet in low on memory state

    operation HandlePendingLowOnMemory(), noMethod;
        // announce, advance to low on memory state
    operation CheckPendingLowOnMemoryOften(): Boolean, noMethod;
        // see if low on memory is pending, processs if true, advance state to low on memory

    operation HandlePendingOutOfMemory(), noMethod;
        // call when pending out of memory, advances to out of memory state, 
        // does all container local handling    
    operation AnnounceOutOfMemory(), noMethod;
        // call to spread the word about out of memory

    operation AttemptMemoryRecoveryIn(): Boolean, noMethod;
        // attempts to recover from both out and/or low on memory, returns true if container 
        // is no longer in low on memory
end class;