javolution37.javolution.realtime
Class HeapContext
- java.lang.Object
-
- javolution37.javolution.realtime.Context
-
- javolution37.javolution.realtime.HeapContext
-
public class HeapContext extends Context
This class represents a heap context; it is used to allocate objects from the heap exclusively.
-
-
Constructor Summary
Constructors Constructor and Description HeapContext()Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static HeapContextcurrent()Returns the current heap context ornullif the current thread executes within a pool context.static voidenter()Enters aHeapContext.static voidexit()Exits the currentHeapContext.
-
-
-
Method Detail
-
current
public static HeapContext current()
Returns the current heap context ornullif the current thread executes within a pool context.- Returns:
- the current heap context.
-
enter
public static void enter()
Enters aHeapContext.
-
exit
public static void exit()
Exits the currentHeapContext.- Throws:
java.lang.IllegalStateException- if the current context is not an instance of HeapContext.
-
-
DMelt 3.0 © DataMelt by jWork.ORG