|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.common.util.ThreadLocalQueue
public class ThreadLocalQueue
A singleton that can enqueue objects on a thread local for later retrieval in batch.
Method Summary | |
---|---|
void |
clearEnqueuedObjects()
Clear the events objects from the thread local. |
void |
enqueueObject(java.lang.Object object)
Enqueue an object on the thread local. |
java.util.List |
getEnqueuedObjects()
Retrieve all the objects enqueued on the thread local. |
static ThreadLocalQueue |
getInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ThreadLocalQueue getInstance()
public void enqueueObject(java.lang.Object object)
object
- The object.
java.lang.NullPointerException
- if the object is null
.public java.util.List getEnqueuedObjects()
public void clearEnqueuedObjects()
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |