|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lwes.listener.ThreadedProcessor
public class ThreadedProcessor
A threaded, queueing event processor. This class requires setting a class to enqueue events (for example, a network listener) and a class to dequeue events (for example, writing to disk).
| Constructor Summary | |
|---|---|
ThreadedProcessor()
Default constructor. |
|
| Method Summary | |
|---|---|
ThreadedDequeuer |
getDequeuer()
Gets the dequeuer being used by this event processor |
int |
getDequeuerPriority()
Returns the thread priority of the dequeuer. |
ThreadedEnqueuer |
getEnqueuer()
Gets the enqueuer being used by this event processor |
int |
getEnqueuerPriority()
Returns the thread priority of the enqueuer. |
java.util.List<QueueElement> |
getQueue()
Returns the List being used as the queue |
void |
initialize()
Initializes the processor to handle events. |
void |
run()
The thread's execution loop. |
void |
setDequeuer(ThreadedDequeuer dequeuer)
Sets the dequeuer to use for this event processor. |
void |
setDequeuerPriority(int priority)
Sets the thread priority of the dequeuer |
void |
setEnqueuer(ThreadedEnqueuer enqueuer)
Sets the enqueuer to use for this event processor. |
void |
setEnqueuerPriority(int priority)
Sets the thread priority of the enqueuer. |
void |
setQueue(java.util.List<QueueElement> queue)
Sets the List being used as the queue. |
void |
shutdown()
Shuts down the event listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadedProcessor()
| Method Detail |
|---|
public ThreadedEnqueuer getEnqueuer()
public void setEnqueuer(ThreadedEnqueuer enqueuer)
enqueuer - the ThreadedEnqueuer to usepublic ThreadedDequeuer getDequeuer()
public void setDequeuer(ThreadedDequeuer dequeuer)
dequeuer - the ThreadedDequeuer to usepublic java.util.List<QueueElement> getQueue()
public void setQueue(java.util.List<QueueElement> queue)
queue - the List to use for this processorpublic int getEnqueuerPriority()
public void setEnqueuerPriority(int priority)
priority - the thread priority to usepublic int getDequeuerPriority()
public void setDequeuerPriority(int priority)
priority - the thread priority to use
public void initialize()
throws EventSystemException
EventSystemException - if there is a problem setting up the processorpublic void shutdown()
public final void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||