|
Jamaica 6.1 release 1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aicas.jamaica.lang.AllocationHandler
public abstract class AllocationHandler
AllocationHandler provides a means to attach a handler to a thread that will be invoked every time the thread performs an allocation.
| Constructor Summary | |
|---|---|
AllocationHandler()
|
|
| Method Summary | |
|---|---|
abstract Object |
handle(Object o)
Routine that will be called when a thread allocated an object. |
static void |
removeAllocationHandler(Thread t,
AllocationHandler h)
Remove the given memory handler. |
static void |
setAllocationHandler(Thread t,
AllocationHandler h)
set the allocation handler for a given thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllocationHandler()
| Method Detail |
|---|
public static void setAllocationHandler(Thread t,
AllocationHandler h)
t - the threadh - the allocation handler, must redefine method handle(Object)
public static void removeAllocationHandler(Thread t,
AllocationHandler h)
t - the thread the handler was assigned toh - the allocation handlerpublic abstract Object handle(Object o)
o - the allocated object
|
Jamaica 6.1 release 1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||