|
J avolution v3.7 (J2SE 1.5+) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.realtime.Context
javolution.realtime.HeapContext
public class HeapContext
This class represents a heap context; it is used to allocate objects from the heap exclusively.
| Constructor Summary | |
|---|---|
HeapContext()
Default constructor. |
|
| Method Summary | |
|---|---|
static HeapContext |
current()
Returns the current heap context or null |
static void |
enter()
Enters a HeapContext. |
protected void |
enterAction()
The action to be performed after this context becomes the current context. |
static void |
exit()
Exits the current HeapContext. |
protected void |
exitAction()
The action to be performed before this context is no more the current context. |
| Methods inherited from class javolution.realtime.Context |
|---|
clear, enter, enter, exit, exit, getOuter, getOwner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeapContext()
| Method Detail |
|---|
public static HeapContext current()
null if the current
thread executes within a pool context.
- Returns:
- the current heap context.
public static void enter()
HeapContext.
public static void exit()
HeapContext.
java.lang.IllegalStateException - if the current context
is not an instance of HeapContext.protected void enterAction()
Context
enterAction in class Contextprotected void exitAction()
Context
exitAction in class Context
|
J avolution v3.7 (J2SE 1.5+) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||