|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmgi.logme.worker.ObjectQueue
Class to generate and use a Queue
Usage:
LogVisit lv = new LogVisit();
lv.setPath(request.getPathInfo().substring(1,request.getPathInfo().lastIndexOf("/")));
lv.setReferer(request.getHeader("Referer"));
lv.setTs(System.currentTimeMillis());
SaveQueue sq = SaveQueue.getQueue();
sq.addMessage(lv);
| Field Summary | |
int |
saved
|
static java.util.List |
threadPool
|
static int |
threadPoolSize
|
| Method Summary | |
void |
addMessage(LogObject lo)
Adds an item to the queue |
LogObject |
getLogObject()
|
static ObjectQueue |
getQueue()
Returns a SaveQueue |
int |
getQueueSize()
Returns the count of all items currently in the queue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int threadPoolSize
public int saved
public static java.util.List threadPool
| Method Detail |
public static ObjectQueue getQueue()
Returns a SaveQueue
public int getQueueSize()
public void addMessage(LogObject lo)
throws java.lang.InterruptedException
Adds an item to the queue
java.lang.InterruptedExceptionpublic LogObject getLogObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||